Javascript-operators-and-expressions Flashcards
What data type is returned by an arithmetic operation?
Arithmetic operators take numerical values (either literals or variables) as their operands and return a single numerical value
What is string concatenation?
+ sign to join 2 variables. Concatenate just means “join together”. To join together strings in JavaScript you can use a different type of string, called a template literal.
What purpose(s) does the + plus operator serve in JavaScript?
Concatenate and addition
What data type is returned by comparing two values (, ===, etc)?
boolean
What does the += “plus-equals” operator do?
The addition assignment operator (+=) adds the value of the right operand to a variable and assigns the result to the variable.