I’m Puzzled

Google script - when not to use a semi colon statement terminator

In the book Google Script by James Ferreira, isbn 978-1-449-31852-9, on page 41 Final code for the hand coded style, the first line shows:

button.addClickHandler(validateEmail)
AND this is the ONLY statement line that does not end with a semi-colon terminator.

My question is Why?

I have tried adding a semi-colon terminator but then the code fails.
Could you explain why we do not put a semi colon terminator and what this means?

Thanks,

Nick

nick.morter@gmail.com
1 person has
this question
+1
Reply