+ 1
Do you need to put a ; at the end of every line of code? (JavaScript)
2 Antworten
+ 2
Nope. Semicolons aren't necessary unless you want to compress all your code in a single line.
But if you're writing code normally and you don't use any, JavaScript implicitly adds them to where it is necessary.
So, it's pretty much a matter of preference.
0
Jonathan Pizarra Thanks for clarifying!