Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap
In this video we'll discuss JavaScript numbers and several useful JavaScript number methods. All in less than 8 minutes!
▶ This video is part of the JavaScript Tutorials for Beginners Playlist found here: https://www.youtube.com/playlist?list=PL0Zuz27SZ-6Oi6xNtL_fwCrwpuqylMsgT
Quick Concepts outline:
(00:00) Intro
(0:08) Dev Environment
(0:30) Integers
(0:42) Floats
(0:50) When JavaScript shows decimals
(1:10) Number data vs String data in the console window
(1:20) Comparing Integers and Floats
(1:47) Equations with Strings vs Numbers
(2:05) The Number() function
(2:33) "Not a Number" aka NaN
(2:50) Boolean data represented as Numbers
(2:58) 0 === false
(3:06) isInteger() method
(3:21) parseFloat() method
(3:47) toFixed() method
(4:04) parseInt() method
(4:17) toString() method
(4:35) Chaining methods using dot notation
(5:00) Number.isNaN() method vs global isNaN() function
Further Reading:
MDN Web Docs - Number Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number
MDN Web Docs - Basic Math in JavaScript: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Math
More Beginner JS Videos:
freeCodeCamp: https://youtu.be/PkZNo7MFNFg
Traversy Media: https://youtu.be/hdI2bqOjy3c
The Net Ninja: https://youtu.be/iWOYAxlnaww
Follow Me:
Twitter: https://twitter.com/yesdavidgray
Medium: https://medium.com/@davegray_86804
#Javascript #Numbers #Tutorial