In this video we're going to look at some simple operators that are used for doing math. …You're not going to need to do a lot of math in the examples we're going through …in this course, but some simple arithmetic is something that comes up …pretty often. So let's take a look at that now. …The first four operators are pretty simple and if you've ever used a …calculator program on a computer, these will probably be familiar to you. …We have of course the plus operator, which will take two numbers and add them …so 2 plus 5 is 7. We also have the minus key, which is …actually a hyphen, so 4 minus 3 is 1. And of course, Java script as well where …negative numbers and things. So 5 minus 9 is negative 4.…
Now, to do multiplication, you don't use an x. …You use the asterisk, so 3 asterisk 5 is 3 times 5, which is 15. …And then finally we use a slash to do division so 36 divided 6 is 6. …And when you start getting into fractions, the result is expressed using …a decimal point. So these are all fairly straight forward. …
- Enabling Firebug and web inspectors
- Using a text editor
- Declaring and assigning a variable
- Booleans and the quest for truth
- Working with objects and arrays
- Using operators and control structures
- Iterating with loops
- Objects, references, and functions
- Understanding variable scope
Skill Level Beginner
Q: In "How to enable Firebug and web inspectors," at the Chrome Canary part, the author mentions going to the View menu, and then Developer. My Canary has no menu bar. The author uses a Mac, whereas I have Windows. How do I get to the same place?
A: Click the menu button at the top right of Chrome, select More Tools, and then choose Developer Tools.
1. Getting Started
Our friend, the text editor3m 35s
2. Variables and Types
3. Objects, Arrays, and More
4. Operators and Control Structures
5. Iterating with Loops
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.