JavaScript, the ubiquitous language of the web, is both fascinating and confounding. Even seasoned developers can find themselves scratching their heads when faced with its idiosyncrasies. In this quiz, we delve into the depths of JavaScript’s peculiarities—those subtle traps that can trip up even the most experienced coders.

From truthy vs. falsy values to the enigmatic behavior of the this keyword, we’ll explore the twists and turns that make JavaScript simultaneously powerful and perplexing. So, fasten your seatbelts, fellow developers, as we unravel the mysteries behind the code curtain. Let’s dive into the world of JavaScript quirks and see if you’re truly a master of this dynamic language! ????????

1. What will be the output of the following code? console.log(0.1 + 0.2 === 0.3);

Wrong

2. What will be the output of the following code? console.log('2' * '3' + '4');

Wrong

3. What will be the output of the following code? console.log(1 + - + + + - + 1);

Wrong

4. What will be the output of the following code? console.log(!!'false' == !'false');

Wrong

5. What will be the output of the following code? console.log(typeof typeof 1);

Wrong

6. What will be the output of the following code? console.log(3.toString());

Wrong

7. What will be the output of the following code? console.log(0 == '0');

Wrong

8. What will be the output of the following code? console.log(2 + '2' - 1);

Wrong

9. What will be the output of the following code? console.log(2 + 5 + '8');

Wrong

10. What will be the output of the following code? console.log([] + [] + 'foo'.split(''));

Wrong

Result: