; in Javascript

Asked

Viewed 29 times

1

It’s been a while since I realized that Javascript does not care for the absence of ; between instructions, as long as there is a line break between them. My question is: is there any difference between using or not using ; ?

I put an example on Jsfiddle to illustrate better what I meant

  • Exactly what I wanted, thank you

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.