Can You Solve This Simple Yet Confusing JavaScript Quiz? #javascript #coding

Posted by

Test Your JavaScript Skills

Test Your JavaScript Skills

Are you ready to test your JavaScript knowledge with a very simple but confusing quiz? Let’s see if you can solve it!

First, take a look at this code:

let a = 10; ++a?

What do you think the output of this code will be? Take a moment to think about it, and then give it a try!

Once you have your answer, you can check it against the correct solution below:

The output of the code let a = 10; ++a? will be:

11

Did you get it right? If not, don’t worry! JavaScript can be tricky sometimes, but the more you practice, the better you’ll get at it.

Feel free to try more quizzes and challenges to sharpen your JavaScript skills. And remember, practice makes perfect!

0 0 votes
Article Rating
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
@ponnuling4728
11 months ago

Wrong explanation, a = 11, b = 11 , c = 11 at the end not 10+11+12. Go and check