Glossary
Built-in facilities
String.length
ReferenceError
confirm
prompt
console.log
>
<
<=
>=
===
!==
true
false
if
() to wrap a condition
() to wrap arguments to a function
%
String.substring()
var
function
=
;
{} to wrap code blocks
Math.random()
[]
[1, 2, 3]
Array.push()
Math.floor()
//
/* */
+=
-=
while
do
else if
else
isNaN()
switch
case
default
break
&&
||
!
String.toUpperCase()
String.toLowerCase()
{} to define an object
new
for
in
[] to access array element
[] to access object property
. to access object property
this
typeof
hasOwnProperty
Object.prototype
Glossary
expression
console
interpreter
comment
commented out
single-line comment
multi-line comment
prompt
data types
type
string
string length
boolean
logging
printing out the value
operators
comparison operators
less than or equal to
greater than or equal to
not equal to
curly braces (aka curly brackets)
statement
if statement
keyword
if keyword
condition
evaluating a condition
if / else statement
syntax
order of operations
modulo
remainder of division
divisibility
substrings
variable
var keyword
declare a variable
define a variable
value of a variable
assign a value to a variable
function
input
output
execute
calling a function
declare a function using var
code block
function keyword
function parameters
debugging
DRY - Don't Repeat Yourself
reusable block
return keyword
return a value
the return value
passing values into a function
scope
global scope
local scope
variable defined inside a function
the current scope
var creates a variable in the current scope
reusable code
uncomment
function arguments
for loops
a counting variable (aka a "counter")
increment a variable / increment a value
decrement
infinite loop
satisfying a condition
list of data
ordering data
array
array index
0-based indexing
array elements
accessing array elements
backslash
wrapping lines
empty array
pushing elements onto arrays
while loop
condition evaluates to true
inside the loop vs outside the loop
do / while loop
Math.floor
if / else if / else
isNaN
switch / case
break
default
empty skeleton of a switch statement
logical operator
and
or
not
boolean logic
Array properties
heterogeneous array (aka "mixture of data types")
two-dimensional array (aka "array of arrays")
jagged arrays
object
key-value pair
key
value
object literal
object literal notation
object constructor
the new keyword
for / in loop
nested conditional
object property
property value
dot notation for accessing properties
bracket notation for accessing properties
constructor
empty object
object method
the this keyword
custom object constructor
arrays of objects
objects as parameters for functions
linear search
checking the type of a variable
object-oriented programming (OOP)
class
object prototype
instance of a class (aka "class instance" or "instance")
extend the object prototype
inheriting the properties and methods of another object
inheritance
"is-a" relationships
prototype chain
all properties of an object are automatically public
public variables
private variables
accessing private variables
private methods