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