Explore key concepts and features of asynchronous programming in…
Start QuizExplore underrated JavaScript libraries that offer powerful solutions for…
Start QuizExplore how pnpm 10 enhances package installation security and…
Start QuizExplore how JavaScript classes relate to prototypes, constructor functions,…
Start QuizDiscover the proven patterns and practical habits that distinguish…
Start QuizAssess your understanding of JavaScript modules, including import/export syntax,…
Start QuizChallenge your understanding of JavaScript function definitions, syntax, and…
Start QuizSharpen your understanding of JavaScript objects with these easy…
Start QuizExplore the basics of JavaScript loops with these straightforward…
Start QuizExplore easy questions covering fundamental JavaScript concepts, suitable for…
Start QuizExplore the basics of the JavaScript Event Loop, including…
Start QuizChallenge your JavaScript fundamentals with 15 essential interview questions…
Start QuizExplore essential concepts for handling dependencies across multi-package JavaScript…
Start QuizChallenge your understanding of fundamental JavaScript concepts with these…
Start QuizExplore the history and evolution of JavaScript, from its…
Start QuizEnhance your understanding of JavaScript with this beginner-friendly quiz…
Start QuizTest your understanding of common internet troubleshooting scenarios and…
Start QuizTest your knowledge of ES6 (ECMAScript 2015) features with…
Start QuizTest your understanding of key JavaScript topics with these…
Start QuizTest your knowledge with these commonly asked JavaScript interview…
Start QuizTest your knowledge of Observables in JavaScript, including their…
Start QuizTest your knowledge of essential JavaScript developer tips and…
Start QuizTest your knowledge of JavaScript ES6 features with this…
Start QuizTest your understanding of core JavaScript concepts relevant to…
Start QuizChallenge your expertise on JavaScript string, number, and date methods, including edge cases and tricky behaviors. This quiz is designed for those wanting to validate their deep understanding of these core JavaScript concepts.
This quiz contains 15 questions. Below is a complete reference of all questions, answer choices, and correct answers. You can use this section to review after taking the interactive quiz above.
Given const str = 'abc'; what will be the new value of str after performing str.toUpperCase(); ?
Correct answer: 'abc'
What is the output of the following code? const x = 5; const y = 10; console.log(`Sum: ${x + y}`);
Correct answer: Sum: 15
What will Number.isNaN('NaN') evaluate to in JavaScript?
Correct answer: false
What is the possible range of values (inclusive or exclusive) returned by Math.random() in standard JavaScript?
Correct answer: [0, 1)
What will be the output of 'banana,apple,pear'.split(',', 2)?
Correct answer: ['banana', 'apple']
What is the result of 0.1 + 0.2 === 0.3 in JavaScript?
Correct answer: false
If you create a date object as new Date(Date.UTC(2020, 0, 1)), what will date.getUTCFullYear() return?
Correct answer: 2020
For the string 'abracadabra', what is the result of str.lastIndexOf('a', 5)?
Correct answer: 5
What does Math.ceil(-2.3) return?
Correct answer: -2
What is the output type of date.toISOString() when date is a valid Date object?
Correct answer: String
What is the result of '7'.padStart(3, '0').padEnd(5, '8')?
Correct answer: '00788'
What value is returned by parseInt('09', 8) in JavaScript?
For new Date('2024-06-13'), what does date.getDay() return if June 13, 2024, is a Thursday?
Correct answer: 4
What does Number.isFinite(Infinity) return?
Correct answer: false
What will be the result of 'test-test'.replace(/t/g, 's')?
Correct answer: 'ses-ses'