how to use multiplication assignment operator (*=) #coding #javascript #tutorial #shorts

preview_player
Показать описание
A step-by-step tutorial on how to use the multiplication assignment operator (*=) in JavaScript. The multiplication assignment operator performs multiplication and assigns the result to the left operand.
Рекомендации по теме
Комментарии
Автор

This videos gonna be complete nonsense to anyone who doesn’t already know what it means, you either need text on screen to explain whats going on or need to do a voiceover.

For anyone curious: +=, -=, *= are a shorter way for assigning a variable to the result of itself and another number. In the video example, the variable ‘count’ is 10. To multiply it by 10 and set ‘count’ to the result, you can do
count *= 10
because its the same as doing
count = count * 10
its just easier to read and write

CertainlySnazzy