Maybe this question will look silly to you. But I have a quick one.
I'm learning JavaScript these days:
And trying to understand following code.
var name = true;
console.log(typeof(name));
why the output is string
?
I'm expecting output will be boolean type. Why its returning as a string ?