Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Paul Trimor5,388 Points
It seems that even if I change the value of "undefined", it still reads true.
var myVar; undefined = true; console.log( typeof myVar === "undefined"); console.log( myVar === undefined);
This is what prints in the console.
However, on the video, it prints true false.
Dino PaškvanCourses Plus Student 44,107 Points
undefined as an immutable property. This basically means that you can't change its value anymore.
When this video was recorded, Chrome was using the ECMAScript 3 standard where
undefined was mutable. That's why your browser prints out
true true. In your browser, you can't change
undefined's value. In the old one, you could do that.
Darren KynastonCourses Plus Student 15,610 Points
Whats the question or at what point (time) in the video are you looking at?