Advertisement
sissou123

Untitled

Mar 18th, 2022
1,005
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. Compound Assignment With Augmented Division
  4. The /= operator divides a variable by another number.
  5.  
  6. myVar = myVar / 5;
  7. Will divide myVar by 5. This can be rewritten as:
  8.  
  9. myVar /= 5;
  10. Convert the assignments for a, b, and c to use the /= operator.
  11.  
  12. let a = 48;
  13. let b = 108;
  14. let c = 33;
  15.  
  16. // Only change code below this line
  17. a = a / 12;
  18. b = b / 4;
  19. c = c / 11;
  20. for more:http://besturl.link/FOre5k
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement