Compound Assignment With Augmented Multiplication1

Compound Assignment With Augmented Multiplication1
0

#1

Tell us what’s happening:

Your code so far


var a = 5;
var b = 12;
var c = 4.6;

// Only modify code below this line

a *= 5 * 5;
b *= 3 * b;
c *= c * 10;


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/compound-assignment-with-augmented-multiplication


#2

you are given the following code to start with:


a = a * 5;
b = 3 * b;
c = c * 10;

and you are asked to use compound assignment with multiplication to change it.
So I’ll show you how to do the first one:

a *= 5; \\this is exactly the same as a = a * 5;

Hopefully this helps you complete the exercise.