What is the result of console.log? var xyz = true; if (xyz) { let res = 42; } console.log(res);
Correct Answer: ReferenceError
Explanation:
Note: This Question is unanswered, help us to find answer for this one
JavaScript Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More JavaScript MCQ Questions
Cookies are a plain text data record with the following variable-length fields?
Which code is correct for validating date values?
What is true about an Array?
How can you create a function with the JavaScript Function constructor ?
For the following html element, which is the correct method to change the font size to 25px using javascript? < p id = 'foo'>Lorem Ipsum
Assuming alert displays a string of its argument: var a = 10; function example(){ alert(a); var a = 5; } example(); What will be shown if the preceding code is executed?
What's the output? var printName = function() { console.log('Matt'); printName = function() { console.log('James'); }; }; var copy = printName; printName(); copy();
What does the >>> operator do?
Which expressions evaluates to false?
What value is passed to function 'foo' as first argument? foo( +'5' );