Question: Which one of the following creates a local variable? a. Declaring it outside of a function with the var keyword b. Declaring it outside of

Which one of the following creates a local variable? 

a. Declaring it outside of a function with the var keyword

b. Declaring it outside of a function without the var keyword

c. Declaring it inside a function with the var keyword

d. Declaring it inside a function without the var keyword

Step by Step Solution

3.31 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

c Declarin... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related JavaScript Questions!