Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js create and call function

// Create a function (you decide the name) that logs out the number 42 
// to the console

// Call/invoke the function

 function number(){
     console.log(42)
 }
 
 number()
//result = 42
Source by scrimba.com #
 
PREVIOUS NEXT
Tagged: #js #create #call #function
ADD COMMENT
Topic
Name
5+5 =