2018-10-12 15:37:13 -04:00
|
|
|
---
|
|
|
|
title: Divide One Decimal by Another with JavaScript
|
|
|
|
---
|
|
|
|
# Divide One Decimal by Another with JavaScript
|
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
## Hints
|
|
|
|
|
|
|
|
### Hint 1
|
2019-03-28 09:35:41 +01:00
|
|
|
JavaScript uses the `/` symbol for division.
|
2018-10-12 15:37:13 -04:00
|
|
|
|
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
---
|
|
|
|
## Solutions
|
|
|
|
|
|
|
|
<details><summary>Solution 1 (Click to Show/Hide)</summary>
|
|
|
|
|
|
|
|
```javascript
|
2019-07-30 00:25:58 +05:30
|
|
|
var quotient = 4.4 / 2.0; // Fix this line
|
2019-07-24 00:59:27 -07:00
|
|
|
```
|
|
|
|
</details>
|
|
|
|
|