DEV Community

Weird JavaScript - Part 1 πŸ§‘β€πŸ’»

imsabir on February 24, 2022

Hey I am Javascript!! Instead Weird Javascript. Its look simple but its not !! As being said, lets move straight to see some Weird parts: Not...
Collapse
 
_bkeren profile image
''
  1. Nothing
  2. 0 2 2
Collapse
 
msabir profile image
imsabir

Updated the answers folks

Collapse
 
taiko profile image
Taiko

i don't think there is anything weird with WJS-2 example. These operators are supposed to work like this in most (if not all) programming language.
num++ -> return then increment
++num -> increment then return

Collapse
 
temiloluwa_banks_4fb5fa6f profile image
Temiloluwa Banks

Very amateur like

Collapse
 
gikdev profile image
Mohammad Mahdi Bahrami

You need to learn grammar...

Collapse
 
temiloluwa_banks_4fb5fa6f profile image
Temiloluwa Banks

Exactly....very poor grammar I must say

Collapse
 
drmikecrowe profile image
drmikecrowe

Nothing
0 3 3

Collapse
 
msabir profile image
imsabir

Follow @msabir for more such weird parts!! Also, You will receive daily update of why JS works like this,** JS under the hood ** article which I will be publishing in some time. Cheers!!

Collapse
 
irondev25 profile image
Rahul Bhaskar

Nothing
1 1 2

Collapse
 
angelinajolly profile image
Info Comment hidden by post author - thread only accessible via permalink
AngelinaJolly

how to get the proper ascending order ? Kerala vasiyam specialist in Chennai

Some comments have been hidden by the post's author - find out more