• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Building JavaScript Expressions > Building Numeric Expressions

Building Numeric Expressions

Probably the most common type of JavaScript expression is the numeric expression that combines numeric operands and arithmetic operators to produce a numeric result. This section discusses all of the JavaScript arithmetic operators and shows you how best to use them to build useful and handy numeric expressions.

A Quick Look at the Arithmetic Operators

JavaScript's basic arithmetic operators are more or less the same as those found on the numeric keypad of most modern computer keyboards, plus a couple of extra operators for more advanced work. Table 5.1 lists the basic arithmetic operators you can use in your JavaScript expressions (subsequent sections discuss each one in more detail).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint