JavaScript | Introduction To JavaScript| Question 10

Last Updated :
Discuss
Comments

What is the result of running the following code in strict mode?

JavaScript
x = 10;
console.log(x);


10

Error: x is not defined

undefined

NaN

Share your thoughts in the comments