I was just randomly practicing JS code today and I put this line of code and ran the code.
var name = 45;
console.log(typeof name);
It told me the type of variable name is a string. It's very strange but type of Name is String yet when I typed this:
var age = 45;
console.log(typeof age);
But here type of variable age is Number. Why am I observing this kind of inconsistency? is it some convention or something like this?