freeCodeCamp/guide/chinese/certifications/javascript-algorithms-and-d.../basic-javascript/divide-one-number-by-anothe.../index.md

11 lines
240 B
Markdown
Raw Normal View History

---
title: Divide One Number by Another with JavaScript
localeTitle: 用JavaScript划分一个号码
---
# 用JavaScript划分一个号码
Javascript使用`/`符号进行除法。
```
var quotient = 6 / 3; //quotient will get value 2
```