DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript default function parameter value
function multiply(a, b) { b = (typeof b !== 'undefined') ? b : 1 return a * b }
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#javascript
#default
#function
#parameter
ADD COMMENT
Topic
COMMENT
Name
2+3 =
Submit