DEV Community

Discussion on: There's no "else if" in JS

Collapse
 
develcharlie profile image
DevelCharlie

And the folk thinks that PHP syntax is rubbish? When in JS you can use ; or not at all? Or many coders sometimes use var or not at all. Ignoring the importance of var ... If you speak of JS you cannot say "Grammar is not a joke"

Collapse
 
genta profile image
Fabio Russo

Nope... I don't agree.
If you know grammar, you know where to use ";" and where to use "var".
If you dunno It, you just code by memory.