13 lines
350 B
Markdown
Raw Normal View History

2018-10-12 15:37:13 -04:00
---
title: Multiply Two Numbers with JavaScript
---
JavaScript uses the `*` symbol for multiplication.
2018-10-12 15:37:13 -04:00
Here is an example:
2018-10-12 15:37:13 -04:00
var product = 8 * 10;
The variable `product` would have a value of `80` after this declaration.
2018-10-12 15:37:13 -04:00
When making calculations, it is possible to use parentheses to prioritise which numbers should be multiplied together.