Question: 11.Prior to ECMAScript 5, what would happen if you declared a variable named firstName and then later refered to it as firstname? a. Firstname would
11.Prior to ECMAScript 5, what would happen if you declared a variable named firstName and then later refered to it as firstname?
a. Firstname would be treated as a new local variable
b. Firstname would be treated as a new global variable
c.The JavaScript engine would throw an arror
d. The JavaScript enggine would automatically correct the error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
