1.1 & 1.2 Declaring variables


#1

The code in section 1.1 does not declare text as a variable, yet in section 1.2 we are declaring it as a variable. Shouldn't we receive an error in 1.1 when we hit save and submit?


#2

Long story short, it still ends up getting declared implicitly by JavaScript. It's generally not a good idea to do this though