Glossary
- -- operator
- -= operator
- ++ operator
- += operator
- Accessing and setting content
- Array length
- Arrays
- Between braces
- Booleans
- Braces
- Calling the function
- Class
- Code block
- Conditions
- Console
- Constructor
- Creating a p element
- Else
- Else if
- Equals operator
- Extend
- Filter
- For loop
- function
- Function name
- Greater than
- Head element
- If statement
- Less than
- Map
- Methods
- Numbers
- Overriding methods
- Parameters
- Reduce
- Removing an element
- Replace
- Sort
- Splice
- String
- Substring
- Tile
- while-loops
JAVASCRIPT
+= operator in JavaScript
Rather than rewriting the variable's name, we can use the +=
operator to add a number with likes += 1
.
let likes = 5;
likes += 1;
console.log(likes);
Sign up or download Mimo from the App Store or Google Play to enhance your programming skills and prepare for a career in tech.