Advertisement
bolo17

Untitled

Apr 5th, 2022
973
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. JavaScript Algorithms and Data Structures
  2. Basic JavaScript
  3. Subtract One Number from Another with JavaScript
  4. We can also subtract one number from another.
  5.  
  6. JavaScript uses the - symbol for subtraction.
  7.  
  8. Example
  9.  
  10. const myVar = 12 - 6;
  11. myVar would have the value 6.
  12.  
  13. Change the 0 so the difference is 12.
  14. const difference = 45 - 0;
  15. for more:https://gurl.pw/lJy6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement