DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript multiply arguments
const mul = (...args) => args.reduce((a, b) => a * b); // Example mul(1, 2, 3, 4); // 24
Source by 1loc.dev #
PREVIOUS
NEXT
Tagged:
#javascript
#multiply
#arguments
ADD COMMENT
Topic
COMMENT
Name
4+6 =
Submit