Shows the remainder after you divide.
%
Example: So, if you divide 13 / 5, 5 goes into 13 two times, and there will be 3 remaining. A modulus, denoted by a %, would take 13 % 5 and return the remainder 3.
Back
Boolean
Front
This is always one of two words. Either true or false, with no quotations.
Back
Comments
Front
// Single Line
/* Multi-lined
*/
Back
Math.random
Front
Generates random number
Back
Number
Front
Number: Any number, including numbers with decimals, without quotes: 4, 8, 1516, 23.42.
Back
Why are variables useful?
Front
1. Allows us to use the value multiple times in our code.
2. Allows the value to be read and changed multiple times by the program.
Back
String
Front
Any grouping of words or numbers surrounded by single quotes: ' ... ' or double quotes " ... ".
Back
variables
Front
To allow users to store or hold data
Back
String interpolation
Front
When you insert a variable into a string.
Back
Three essential data types in Java
Front
1. Strings
2. Numbers
3. Booleans
Back
prompt
Front
Asks the user for input.
Example:
var favAnimal = prompt('What is your favorite animal?!')
Back
Math.floor
Front
Rounds down to the nearest whole number.
Example: 2.65483 = 2