- The code shown here:
refreshcomposite.js
is how you might be writing JavaScript - Let's try to format this up using the "JavaScript Standard" - which is gaining in popularite
- Watch this... put in WILDocument
- Mr. M. subscribes to his channel Fun Fun functions
- a programmer at Spotify... what is his background
- https://medium.com/humans-create-software/semicolons-cannot-save-you-bf991756174e
NOTE:
- some programmers hate the JavaScript standard, others love it -
- Best advice, use whatever style / standard / best practices your boss wants you to use
- Copy the
refreshcomposite.js
code to your clipboard - Go to: https://standardjs.com/demo.html
- Paste in the code
- Note carefully - all the suggestions that will make this code follow the standard
- Press the button to format it
- Inspect it carefully - What to you think
#TIPS All good editors (Atom.io, SublimeText etc.) have:
- something called auto formatters, which will do this for you right in your editor
- something called Linters - this will let you know of any errors as you are typing