Question 1
What is the output of the following code? ```js var x = 1; function foo() { console.log(x); var x = 2; } foo(); ```
Correct Answer:
undefined
Question 2
Which of the following correctly describes the difference between `let` and `var`?
Correct Answer:
let is block-scoped; var is function-scoped
Question 3
What is the output of this code? ```js const arr = [1, 2, 3]; arr.push(4); console.log(arr.length); ```
Correct Answer:
4
Question 4
What does the following destructuring assignment produce for `b`? ```js const [a, b = 10, c] = [1, undefined, 3]; console.log(b); ```
Correct Answer:
10
Question 5
What is the result of `typeof null` in JavaScript?
Correct Answer:
object
Question 1
Exam overview

About this Exam

Prepare with the JavaScript Developer I Practice Questions - Salesforce Certified JavaScript Developer I Exam practice quiz. This question bank includes 100 questions covering console, const, output, function, and name. Use it to review important concepts, identify knowledge gaps, and build confidence for the related exam, course, or assessment.

More details

Additional Information

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

This practice set contains 100 questions from the matching question bank and focuses on console, const, output, function, and name. Work through each question carefully, review the provided solutions, and revisit topics that need more study before your next attempt.

This is an independent study resource intended for practice and review; it is not an official examination or an endorsement by any organization named in the title.

Quiz information

Frequently Asked Questions

The complete question count is available after full access is unlocked.
No fixed duration is currently configured for this quiz.
Question explanations are included where they are available in the quiz content, helping you review the reasoning after answering.
Yes. You can retake the practice test again as you continue studying during your available access period.
After your access is confirmed, you can continue into the complete practice exam from this quiz flow.
Unless explicitly stated otherwise, this page provides independent practice material for study and exam preparation and is not the official examination itself.
Keep studying

Related Questions