JavaScript Function to find the position of a Character in a String Variable? Var x = “[email protected]”;
var atpos = x.charAt(0);
var atpos = x.charAt(‘A’);
var atpos = x.indexOf(“@”);
var atpos = x.indexOf(‘@’);