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
- Equality operator
- Extends
- Filter
- For Loops
- Function
- Function name
- Greater than
- Head element
- If statement
- Less than
- Map
- Methods
- Numbers
- Overriding methods
- Parameters
- Reduce
- Removing an element
- Replace
- Sort
- Splice
- Strings
- Substring
- Title
- While Loops
JAVASCRIPT
-= operator in JavaScript
To subtract from a variable's value, we use the -=
operator, like here where we decrease likes
by 3
.
let likes = 5;
likes -= 3;
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.