Multiplication (*)

The multiplication operator (*) produces the product of the operands.

Syntax

x * y

Examples

Multiplication using numbers

 2 * 2      // 4
-2 * 2     // -4

Multiplication with Infinity

Infinity * 0         // NaN
Infinity * Infinity  // Infinity

Multiplication with non-numbers

'foo' * 2 // NaN

Specifications

Specification
ECMAScript Language Specification
# sec-multiplicative-operators

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobileserver
ChromeEdgeFirefoxInternet ExplorerOperaSafariWebView AndroidChrome AndroidFirefox for AndroidOpera AndroidSafari on iOSSamsung InternetDenoNode.js
Multiplication (*)

Legend

Full support
Full support

See also