[Solved] difference between typeof “andrei” and typeof “andrei”.valueOf()
[ad_1] No, there’s no difference, unless someone’s done something silly to the JavaScript environment. “andrei” is a string primitive, thus typeof “andrei” is “string”. If you do “andrei”.valueOf(), you’re coercing a string primitive into a String object (in theory*) because you’re accessing a property on it (valueOf), and then asking that object for its primitive … Read more