DEV Community

Cover image for Sometimes JavaScript is Tricky.

Sometimes JavaScript is Tricky.

Rajat_Arya on January 30, 2021

When I was new in Web Development, I faced many difficulties while learning JavaScript, but after regular practice, my views changed. To be honest...
Collapse
 
mirkodrummer profile image
Mirko Mariani • Edited

Postfix and prefix unary operators works the same in c family languages. It’s not an oddity of the language per se. They are old operators that can lead to confusion. But other than that I don’t see how a language can be tricky with examples like typeof typeof 1 😅 Or the example with the continue keyword, again it’s not an oddity of the language it’s just basic programming, continue is used in pseudo code as well...

Collapse
 
samuelnarciso28 profile image
Samuel Narciso

Excelente post

Collapse
 
mcwachira profile image
mcwachira

Intesting concepts leant a lot

Collapse
 
renatoayau profile image
Renato Ayau

Nice :)

Collapse
 
rjitsu profile image
Rishav Jadon

Nice exercises

Collapse
 
capscode profile image
capscode

nice post

Collapse
 
kamcio profile image
kamcio

Thank you for this!

Collapse
 
softwaredevlpr profile image
Devlpr

Lol I just laughed when I saw this and was like JavaScript is always tricky :).
Enjoyed this :).

Collapse
 
johandalabacka profile image
Johan Dahl

Nice :)

Collapse
 
arulvalananto profile image
Arul Valan Anto S

The way of your explanation is excellent. I like it a lot man. Give more blogs like this.

Collapse
 
arogya01 profile image
arogya bichpuria

Cool Explanation of little obscure topics through examples.

Collapse
 
mrdulin profile image
official_dulin

That's why I prefer strongly typed language. Nothing hides.

Collapse
 
psanchez1982 profile image
Patricio Sanchez Alvial

¿Sometimes? hahaha everytime

Collapse
 
functional_js profile image
Functional Javascript

The trick is to not have any of these tricks in your code. ;-)

Use the cleanest subset of the language only.
Have what you use and don't use formally documented.