Basic JavaScript: Divide One Decimal by Another with JavaScript

Tell us what’s happening:

Your code so far

// Setup
var a;
var b = 2;

// Only change code below this line

a = 7

b = a

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36.

Link to the challenge:

And your question is…?

You divide in javascript with the / sign

JavaScript uses use the / symbol for division. var quotient = 4.4 / 2.0;

1 Like