Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

default value of functin atribute

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

say();
// 'Hi'
// 7
Comment

PREVIOUS NEXT
Code Example
Javascript :: sort array 
Javascript :: javascript hashtable 
Javascript :: javascript unicode 
Javascript :: delete icon 
Javascript :: how to pass props in react 
Javascript :: javascript key value map 
Javascript :: js use await in synchronous method 
Javascript :: Javascript async await & Promise 
Javascript :: angular store select method 
Javascript :: JavaScript for...of loop 
Javascript :: javascript dict 
Javascript :: promise in js 
Javascript :: TypeError: Converting circular structure to JSON 
Javascript :: deploy node app to heroku 
Javascript :: remove second last element from array javascript 
Javascript :: how to change port in next js 
Javascript :: how to call a function javascript 
Javascript :: leaflet marker cluster change color 
Javascript :: filter table search 
Javascript :: Geometery parsing GeoJSON 
Javascript :: console.log is not a function 
Javascript :: encrpting data in javascript 
Javascript :: code splitting react 
Javascript :: jq cheat sheet 
Javascript :: Sort Date string in javascript 
Javascript :: add value to object 
Javascript :: . is not recognized as an internal command npm run 
Javascript :: Everything Be True 
Javascript :: react native tdd emzyme 
Javascript :: javascript check if json object is valid 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =