Please enable JavaScript to use CodeHS

Chapter 1

Basic JavaScript and Graphics

1.5 Basic Math In JavaScript

Arithmetic Operators in Javascript

Dollars to Pounds

What Is The Modulus??

Dividing Up Groups

Increment and Decrement

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Cookie Shop

Vocabulary

Term Definition
Constant A variable in a program that has a value that does not change.
Magic Number A number in your code that appears arbitrary. These should all be replaced with calculations or constants.
Parentheses ( and )
Increment To add to or increase
Decrement To subtract from or decrease