4 thoughts on Javascript WTFe3

  1. You’ve hit on the difference between parseInt() and Number(). parseInt() by default only works with numerals (unless you pass in a radix).

    Number(“1e3”); //1000

    parseInt(“1e3”); //1

    parseInt(“1e3”, 16); //483

Leave a Reply