JS quiz

JavaScript Mastery Quiz
Test your knowledge of JavaScript with our engaging quiz designed for developers of all skill levels! Whether you're a beginner or an expert, this quiz will challenge your understanding of important JavaScript concepts.
- 11 challenging questions
- Multiple choice format
- Instant results

What will this code log to the console?
Null undefined undefined
Undefined undefined f b() {}
It will throw an exception
Undefined f b() {} undefined

What will this code log to the console?
1
Undefined
It will throw an exception
None of the other options

What will this code log to the console?
None of the other options
Local
Global
Undefined

What will this code log to the console?
Undefined
It will throw an exception
1
2

What will this code log to the console?
False
True

How about this one?
False
True

What will the following code log to the console?
'false true' on the first line and 'true false' on the first line
'false false' on the first line and 'true false' on the first line
Nothing, the processor will catch fire trying to figure it out.
Fill in the blanks in the following statement: The ______ in a function is determined by the way the function is invoked, while the ______ is determined by where the function was lexically declared.
1st blank - scope 2nd blank - value of 'this'
1st blank - value of 'this' 2nd blank - scope
Is the following statement true or false: "In JavaScript, the name of the function needs to start with an uppercase letter (eg. Foo) in order to be invoked as a constructor (eg. new Foo())" ?
True
False
Is the following statement true or false: "When invoked as a constructor, a function will return an object, even if the function has no return statement at all"?
True
False
{"name":"JS quiz", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of JavaScript with our engaging quiz designed for developers of all skill levels! Whether you're a beginner or an expert, this quiz will challenge your understanding of important JavaScript concepts.11 challenging questionsMultiple choice formatInstant results","img":"https:/images/course8.png"}
More Surveys
Linting rules
10510
Test automation training - entry knowledge check
10525
Chapter 2 Meaningful Names & Chapter 3 Functions
10511
Behavioral & Structural Design Pattern Quiz Quiz
10516
Design Patterns Quiz
10524
CS FOLDER PROJECT
1589
Designer Qualification
16847
ITC Certification Course
1058
The Scrum Framework
1477
ISTQB Test
11616
Agile Maturity Test
1050
Shared tools
6320