News for hackers. Stuff that matters.
Re:Show HN: I taught my little brother JS, and he made this ... by ghusbands on Thursday January 10, 2019 @09:47AM (#18874170)
This advice is incorrect. Experimenting in the console in both Firefox and Chrome shows that there's not a significant speed difference between the two, even if you make sure you only call a given function with integers <10000.
Re:Show HN: I taught my little brother JS, and he made this ... by tim1994 on Thursday January 10, 2019 @10:47AM (#18874654)
On my laptop it is about 30% slower (tested with Firefox 64). However I agree, this was not very good advice for someone who just started programming with JS...