Basic JavaScript: Divide One Decimal by Another with JavaScript

Basic JavaScript: Divide One Decimal by Another with JavaScript
0

#1

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:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/storing-values-with-the-assignment-operator


#2

And your question is…?


#4

You divide in javascript with the / sign


#5

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