what is a function? what is its syntax and structure? | a function in like a recipe or set of instructions. it takes an input and uses that information to create an output. the syntax is: function [function name] (input) {output} |
when do we use conditional statements (i.e. if/else statements? what is their syntax and structure? | we use conditional statements to make different commands for different divs, like how each part of the square quilt has a different description. they appear in the output section of a function. the syntax is: if [div name, i.e. square].id==[iteration of div name, i.e. square1] {output/specification here} |
what are the different types of data in javascript? | the types of data are strings, numbers, and booleans. |
what is an event listener? when do we use them? what is their syntax and structure? | |
what is an array? when do we use them? how do we make and write them? | |
how do we refer to the different elements in an array? | |
what is math.random()? what does it do? when do we use it? |