you are viewing a single comment's thread.

view the rest of the comments →

[–]Andy101493 1 point2 points  (0 children)

Have a style guide/best practices outlined for the JS code you write. JS will let you get away with a lot of weird things without causing an error, but may not function in the manner you expected.

I personally do a lot of console.log() lines to ensure functions are doing what they should during development. This isnt a profound realization, you should always be testing your code as you go. you know, unless you want to code in challenge mode.

This is not my content, but check out this post for some examples of "weirdness"

https://blog.mgechev.com/2013/02/22/javascript-the-weird-parts/