loading...

re: Here are Top 5 Best Practices for JavaScript you MUST ALWAYS FOLLOW VIEW POST

TOP OF THREAD FULL DISCUSSION
re: This feature is known as Automatic Semicolon Insertion. However, using this feature is not recommended I would be very interested in a link to wh...
 

The point is to understand where automatic semicolon insertion is going to cause bugs and avoid code that will allow it (preferably with lint rules) and then be consistent. The classic example is to avoid a return statement that splits the returned value to a new line.

Anyway I'll add a sixth best practice you should always follow:

Never follow advice that says you should always follow it. There are always exceptions :)

code of conduct - report abuse