Challenge 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.
Given const str = 'abc'; what will be the new value of str after performing str.toUpperCase(); ?
What is the output of the following code? const x = 5; const y = 10; console.log(`Sum: ${x + y}`);
What will Number.isNaN('NaN') evaluate to in JavaScript?
What is the possible range of values (inclusive or exclusive) returned by Math.random() in standard JavaScript?
What will be the output of 'banana,apple,pear'.split(',', 2)?
What is the result of 0.1 + 0.2 === 0.3 in JavaScript?
If you create a date object as new Date(Date.UTC(2020, 0, 1)), what will date.getUTCFullYear() return?
For the string 'abracadabra', what is the result of str.lastIndexOf('a', 5)?
What does Math.ceil(-2.3) return?
What is the output type of date.toISOString() when date is a valid Date object?
What is the result of '7'.padStart(3, '0').padEnd(5, '8')?
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?
What does Number.isFinite(Infinity) return?
What will be the result of 'test-test'.replace(/t/g, 's')?