I’ve also heard that Go insert them too, but they followed a different approach
How does Javascript insert semicolons while interpreting?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One of the biggest things I’ve found is, let’s say you have a function that returns coordinates (or any object really), similar to this.
You would expect to get back an object right? WRONG! You get back undefined. The interpreter converts the code into this
Since
returnby itself is a valid statement. You need to be sure to write the return as follows