reusable block of code that groups together a sequence of statements to perform a specific task.
Back
>=
Front
greater than or equal to
Back
Write a template literal:
Front
` ${} `
Back
conditional statement
Front
conditional statement checks specific condition(s) and performs a task based on the condition(s)
Back
var
Front
JS keyword for variable, creates/declares new variable
Back
Boolean
Front
This data type only has two possible values— either true or false (without quotes).
Back
multi-line comment (block comment)
Front
starts with / and ends with /, where all text between / and / is part of the comment
Back
ternary operator
Front
shorthand to simplify concise if...else statements.
Back
Undefined
Front
This data type is denoted by the keyword undefined (without quotes). It also represents the absence of a value though it has a different use than null.
Back
Variable
Front
a container for a value
Back
List 2 types of code comments in JavaScript:
Front
single line comment and multi-line comment
Back
//
Front
multi-line comment
Back
Fat Arrow
Front
() =>
Back
Operator
Front
a character that performs a task in our code
Back
Symbol
Front
unique identifiers, useful in more complex coding
Back
Console
Front
an object, a collection of data and actions, that we can use in our code.
Back
What are the seven fundamental data types in Javascript?
will comment out a single line and is denoted with two forward slashes // preceding it
Back
Multi-line Comment
Front
Will comment out multiple lines and is denoted with / to begin the comment, and / to end the comment. You can also use this syntax to comment something out in the middle of a line of code.
Back
.
Front
The dot operator
Back
A single line comment begins with:
Front
Two forward slashes ( // )
Back
When can a value be falsy:
Front
0, Empty strings like "" or '', null (which represent when there is no value at all) undefined (which represent when a declared variable lacks a value), NaN (Not a Number)
Back
3 logical operators
Front
and (&&) or (||) and not (bang !)
Back
How to start a JS doc:
Front
main.js
Back
How do we call, or use methods?
Front
ie. 'example string'.methodName()
Back
!==
Front
is NOT equal to
Back
List the arithmetic operators:
Front
+, -, *, /, %
Back
String
Front
Any grouping of characters on your keyboard (letters, numbers, spaces, symbols, etc.) surrounded by single quotes: ' ... ' or double quotes " ... ". Though we prefer single quotes. Some people like to think of string as a fancy word for text.
Back
<
Front
Less than
Back
modulo
Front
%. Returns the remainder from a division.
Back
<=
Front
less than or equal to
Back
Concatenation
Front
This process of appending one string to another
Back
Parameter of a function
Front
function ==>(this)<== { } . - To allow a function to accept data. provides the information the function needs to perform its job, e.g., how long should the phone vibrate, or how big a circle should be drawn
Back
Number
Front
Any number, including numbers with decimals: 4, 8, 1516, 23.42
Back
data type
Front
classifications we give to the different kinds of data that we use in programming
Back
Write correct 'if' syntax:
Front
if (true or false) { // block statement }
Back
>
Front
greater than
Back
Null
Front
This data type represents the intentional absence of a value, and is represented by the keyword null (without quotes).