New Number Methods and Constants in JavaScript




Numbers can be fickle in dynamic languages where type inference occurs. JavaScript has had some problems with this in the past, but with some of the new number methods, the language is starting to resolve these issues. In this video, we take a look at truncating numbers, as well as the Number.isNaN method for better “not a number” comparison.

JavaScript is the assembly language of the web, but that hasn’t prevented it from being the punchline of jokes for the last decade or so because of some of its weird quirks, and the various ways in which browsers have implemented it. In this video tutorial series, we’re going to go over modern JavaScript, and why, if you hate JavaScript, you shouldn’t anymore.

If you like this video and want to go deeper, check out https://codepunk.io, or subscribe to our newsletter at https://botsandbeer.com

Interested in building chatbots in JavaScript and TypeScript? Check out my book: https://www.amazon.com/Building-Chatbots-TypeScript-Microsoft-Framework/dp/0578513498/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1559317442&sr=8-1

To stay in touch, following me on Twitter at https://twitter.com/szul.

You can also follow Bill: https://twitter.com/neurothustra.

Don’t forget to subscribe to this channel for updates:
https://www.youtube.com/c/codepunk?sub_confirmation=1

Original source