Watching:

Work with numbers Programming


show more Unlike many programming languages, JavaScript does not need you to define what specific type of number you put in a variable. Instead, it has a human-friendly approach to numbers that does not need to define whether it is using an integer, floating point, or other type of number. JavaScript does have commands, however, for working with numbers in various ways. This video tutorial from Lynda.com will help you understand how JavaScript interprets and uses numbers. show less
please wait ...

Working with numbers

So anytime we're working with variables, we really have two things. We have the variable, the container, the bucket, and we have the different values that we're going to put in it from moment to moment. Now, the most common kind of values in computer programs are numeric values, numbers, and really this is no surprise. Sure, these days, when we use the word computer, we think of a machine. But for hundreds of years, computer was a job. In the 17th, 18th, 19th centuries, you could be employed as a computer.

It just meant a person who computes, someone who does calculations. Then these machines come along and they do it far better than the person ever could. These days we think a computer means hardware. But the reason they were invented was always about number crunching. But we need to be comfortable with our use of numbers. When we're writing programs, we're dealing with bank balances and dollars and cents, the position of a spaceship on the screen, the height and width ...

Working with numbers
Video duration: 5m 4s 4h 47m Beginner

Viewers:

Unlike many programming languages, JavaScript does not need you to define what specific type of number you put in a variable. Instead, it has a human-friendly approach to numbers that does not need to define whether it is using an integer, floating point, or other type of number. JavaScript does have commands, however, for working with numbers in various ways. This video tutorial from Lynda.com will help you understand how JavaScript interprets and uses numbers.

Subjects:
Developer Web
Author:
please wait ...