javascript-operators-and-expressions Flashcards
1
Q
What data type is returned by an arithmetic operation?
A
Answer to a math problem; can be sum, difference, etc…
2
Q
What is string concatenation?
A
Combining strings
3
Q
What purpose(s) does the + plus operator serve in JavaScript?
A
Addition or for concatenation of strings
4
Q
What data type is returned by comparing two values (, ===, etc)?
A
A boolean data type
5
Q
What does the += “plus-equals” operator do?
A
Concatenates two values, adds the value to the current value of the variable and reassigns to the variable.