y is it switching to asci while logging a string js code example
Example: Javascript convert character to ascii
var myVar='A';
var myVarAscii = myVar.charCodeAt(0); //convert 'A' character to it's ASCII code (65)
var myVar='A';
var myVarAscii = myVar.charCodeAt(0); //convert 'A' character to it's ASCII code (65)