Why i need to put this: ; to the end of a code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Why i need to put this: ; to the end of a code?

pls help me

19th Mar 2019, 7:19 PM
Kenti625
Kenti625 - avatar
5 Answers
+ 6
You don't need to but its good practice, some languages like java require it.
19th Mar 2019, 8:17 PM
Ole113
Ole113 - avatar
+ 6
It's like saying thank you sir... may not be necessary but a good practice
20th Mar 2019, 5:41 AM
Dan Rhamba
Dan Rhamba - avatar
+ 2
// In JavaScript, you are not required to use a semicolon in the end of the line of code.
19th Mar 2019, 9:35 PM
program
program - avatar
+ 2
Thank you everybody!
20th Mar 2019, 5:43 AM
Kenti625
Kenti625 - avatar
0
I guess Parsers are the reason to not avoid semicolon.
19th Mar 2019, 10:24 PM
Home Number
Home Number - avatar