javascript-operators-and-expressions Flashcards
What data type is returned by an arithmetic operation?
number
What is string concatenation?
string concatenation is inlcuding the value of a variable in-line with a string , a tring with a number or combining two or more strings.
What purpose(s) does the + plus operator serve in JavaScript?
In JavaScript, the + operator serves multiple purposes. It can be used as an arithmetic operator to perform addition, as well as a string concatenation operator to combine or join strings.
What data type is returned by comparing two values (<, >, ===, etc)?
a boolean
What does the += “plus-equals” operator do?
+= is the same as var sum = sum + {value} - adds value on right hand side of the operator to the varable and then stores it back to the variable.