Question PRG-JS-0010
MediumWhat is the output of this program?
console.log(x);
var x = 10;
- A.
null
- B.
ReferenceError
- C.
10
- D.
undefined
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
JavaScript question
What is the output of this program?
console.log(x);
var x = 10;
null
ReferenceError
10
undefined
Sign up free to see the answer and a step-by-step explanation.