Closed mserykh closed 3 years ago
No. 1
: That's not the reason ;)No. 4
: Why do you say so? How can you prove it?
No. 1
: That's not the reason ;)No. 4
: Why do you say so? How can you prove it?
Yeahhh...So stupid of me :|
age != Age, because 1 != 2
undefined type is undefined. How to check it:
console.log(typeof indefined);
Cool!
🚀 Challenge
JavaScript is notorious for its surprising ways of handling datatypes on occasion. Do a bit of research on these 'gotchas'. For example: case sensitivity can bite! Try this in your console:
let age = 1; let Age = 2; age == Age
(resolvesfalse
-- why?). What other gotchas can you find?