JavaScript terminology

JavaScript terminology

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

modulus

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (12)

Section 1

(12 cards)

modulus

Front

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

Back