top of page

Code Cards

math object code card

Math object

Perform math operations on numbers

constructor code card

constructor

Function to build new objects

dot notation code card

dot notation

Access an object's properties and methods

fors code card

for loops

Four ways to iterate over arrays or objects

includes method code card

includes

Check to see if letters or words are in a string

map method code card

map

Do something to every item in an array

push and pop code card

push and pop

Add or remove items at the end of an array

replace method code card

replace

Replace characters in a string

return code card

return

Keyword to get a value from a function

shift and unshift code card

shift and unshift

Add or remove items at the beginning of an array

sort method code card

sort

Sort items in an array

this code card

this

Keyword refers to the current object or element.

bottom of page