HomeQuizzesJavaScriptJavaScript Foundations
beginnerJS-BEG-001

JavaScript Foundations

10 questions  ·  JavaScript  ·  beginner level

📝10 questions
No time limit
🔄Retake anytime
Instant feedback

Preview questions

1
Multiple Choice

What does typeof null return?

A
B
C
D
🔒 Sign in to answer and see explanation
2
Multiple Choice

Which of the following is NOT a primitive type in JavaScript?

A
B
C
D
🔒 Sign in to answer and see explanation
3
Multiple Choice

What will this code output?

var x = 1
function foo() {
  var x = 2
  console.log(x)
}
foo()
console.log(x)
A
B
C
D
🔒 Sign in to answer and see explanation
+ 7 more questions
Sign in to attempt the full quiz
Free · No credit card required

Ready to attempt the full quiz?

Sign in to attempt all 10 questions, track your progress, and unlock AI-powered personalization.

← Browse all JavaScript quizzes