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
We can subtract 1
from a variable's value using the decrement operator ( --
) just like here with likes--
.
let likes = 5;
likes--;
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.