
- JavaScript
- Beginner
About this Course
Numbers are everywhere in programming. You use them to track a player's score in a game, calculate the cost of shipping a product, or count the number of times a "Like" button gets clicked on a page. In this course, you'll learn how to use numbers for useful tasks in your JavaScript programs, including doing math, converting strings to numbers, generating random numbers, and more.
Working with Numbers
Understand the types of numbers JavaScript can work with, how to store numbers in variables, and how to convert strings to numbers.
10 stepsThe Math Object
JavaScript includes a special "object" called the "Math Object", which lets you perform mathematical operations like creating random numbers, rounding, and more.
8 steps-
Perform Operations With the Math Object
4:10
-
Create a Random Number
7:27
-
The Math Object Review
5 questions
-
Use Math Methods
2 objectives
-
Random Number Challenge
1:14
-
Random Number Challenge – Solution
6:04
-
Random Number Challenge – Two Numbers Solution
4:06
-
JavaScript Numbers Review
5 questions
Teacher
-
Guil Hernandez
Guil is a Full Stack JavaScript and Front End Web Development instructor.