Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

default value of functin atribute

function say(message='Hi', number=7) {
    console.log(message);
  	console.log(number);
}

say();
// 'Hi'
// 7
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #default #functin #atribute
ADD COMMENT
Topic
Name
4+7 =