JavaScript Developer I Practice Questions - Salesforce Certified JavaScript Developer I Exam

Access More Questions
What is the output of the following code? ```js var x = 1; function foo() { console.log(x); var x = 2; } foo(); ```
Correct Answer:
undefined

Access more questions from this quiz

Continue to JavaScript Developer I Practice Questions - Salesforce Certified JavaScript Developer I Exam for more practice questions and the full quiz experience.

Access More Questions