JavaScript - Guess the Output

Опубликовано: 29 Декабрь 2024
на канале: Proto Coders Point
351
19

In this video, we dive into a quicky JavaScript puzzle that stumped even seasoned developers! 🤔

Can you guess the output of the following code?
console.log(2 ++ 3);

It throws an error! But what happens if we add a space between the ++? Like this:
console.log(2 + + 3);

Comment your answer below! Let's see how many of you can crack this JavaScript mystery. 💡

Don't forget to like, share, and subscribe for more coding challenges and tips! 🔔