What data type is represented "tree"?
string
What is the symbol for less than or equal to?
<=
This is an optional symbol placed at the end of JavaScript statements.
What is:
semicolon (;)
const numUmbrellas = 10 * 3;
What is the value of numUmbrellas?
30
What component of coding structure can be thought of as a container that stores a value?
variable
What data type is represented by 123.4567?
Number
What is the symbol for not equal to?
!== or !=
Which symbol assigns a value in a statement?
=
const str1 = 'Hello,';
const str2 = 'I am';
const name = 'Josh';
const answer = str1 + " " + str2 + " " + name
What is the value of answer?
"Hello, I am Josh!"
Which type of coding structure gives the computer options about how to respond?
conditional statement
What data type evaluates to true or false?
Boolean
What is the symbol for greater than?
>
These are two ways for commenting out code.
What are // and /* */ ?
const myValue = 100 % 3
1
Where should each new statement begin in a script?
On a new line.
These are the 6 primitive data types in Javascript.
What are string, number, boolean, symbol, undefined, and null?
What is represented by ||?
OR
either the value on the left or right needs to be true
Javascript variables can start with any of these characters.
What are a-z, A-Z, $ and _?
const numUmbrellas = 10 * 3;
numUmbrellas = "23"
console.log(numUnberllas)
What will print in my console?
An Error:
numUmbrellas is a constant variable and can not be reassigned
How does JavaScript read code?
line by line, or sequentially
This is a set of one or more key/value pairs.
What is an Object?
What is the difference between == and ===
=== is strictly equal while == is a fuzzy equal
=== compares type and value while == does type conversion to compare values
These 4 characters are invalid for use in JavaScript variable names.
What are:
spaces, hyphens, "/", and "\"?
const x = 1.9 + .09
1.99000000000002
These are javascript's variable definition keywords.
const and let
(var - legency code - dont use)