· 2 min read

10 Javascript Challenges

A collection of 10 JavaScript minigames to prove your skills

A collection of 10 JavaScript minigames to prove your skills

Do you know Javascript? After the success of the previous video, I’ve decided to make a second one with 10 more challenges to test your knowledge of the language.

These are 4 out of the 10 challenges you’ll find in the video:


The ++ operator is really handy and you can put it either before or after the variable. But do you know the difference between the two?

let value = 3;
console.log(value++);
console.log(++value);

You can use _ and the letter e in numbers and they’re still valid!

const THE_ANSWER = 1_2 + 3e1;

console.log(THE_ANSWER);

Isn’t the output here supposed to be 7 on both cases? Actually, none of them is 7!

const x = '5';

console.log(1 + 1 + x);
console.log(x + 1 + 1);

Can you spot any unintended side effect here?

let me = { name: 'Leonardo', socials: { twitter: '@balastrong' } };

let luca = { ...me };
luca.name = 'Luca';
luca.socials.twitter = '@puppo92';

console.log(me);
console.log(luca);

If you’re curious about the answers, you can find them in the video below. I hope you enjoy it!

In the video above, I go through all challenges and show the answer, but I also recorded a slower version where I actually explain them in more detail. If you’re curious and want to learn more, you can find it here.

Let me know how many did you got right! :D

About the author
Leonardo

Hello! My name is Leonardo and as you might have noticed, I like to talk about Web Development and Open Source!

I use GitHub every day and my favourite editor is Visual Studio Code... this might influence a little bit my conent! :D

If you like what I do, you should have a look at my YouTube Channel!

You might also like
Back to Blog