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
Hey! I Discovered something....
my workspace: https://teamtreehouse.com/workspaces/41238132
Steven Parker228,001 Points
When you leave off the explicit declaration, the variable is created using implicit global declaration. While this is allowed in normal mode, when the system is in "strict" mode it will cause a fatal error.
Also, even in normal mode, it is considered a programming "best practice" to always explicitly declare variables. There are also some functional differences in behavior between declared and undeclared variables. For more details, see the MDN documentation page for var.
Hey wait😅 what is strict mode now? And explicit?