Learn JavaScript
This is (will be) a collection of JavaScript learning and reference resources.
Casting/Type Conversion
String to Number (Integer)
parseInt()
REF: MDN: “parseInt()”
String to Number (Float)
parseFloat()
REF: MDN: parseFloat()
Number (Integer) to String
toString()
fullname: Number.prototype.toString()
REF: MDN: toString()
REF: StackOverflow: “What’s the best way to convert a number to a string in JavaScript?”
Use a REPL
Using a REPL can oftentimes speed things up when unsure on or experimenting with some JavaScript construct.
I have used: repl.it
REF: repl.it