JS/EcmaScript Documentation https://developer.mozilla.org/
Some everyday examples/snippets https://codetogo.io
- Use
===
or!==
for comparison - Open and close parentheses/curlyBraces/squareBrackets, or you'll miss some of them
- Use
const
andlet
and don't usevar
- Use arrow function (
() => {}
) and not the old function methods (while there might be some use cases, let's stick with the arrow for now!) - Use Backticks (`) for interpolation with
${variable}
to 'print' the variable value
What exactly is node.js? https://medium.freecodecamp.org/what-exactly-is-node-js-ae36e97449f5
Differences and similarities between ull and undefined: https://codeburst.io/javascript-null-vs-undefined-20f955215a2
Parsing Integers: Base or Radix https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt
https://en.wikipedia.org/wiki/Radix
https://stackoverflow.com/questions/31126364/javascript-converting-decimal-to-binary/31126398
The following examples all return NaN:
parseInt("546", 2); // Digits are not valid for binary representations