Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

define passing a parameter into a function in javascript

/* DEFINATION: Function parameters are the variables specified in the function 
definition, and function arguements are the values passed as arguements.*/

//code:
     function saySomething(phrase){
       console.log("You said: "+ phrase)
       
 }
     saySomething("Hello how are you?")
 
PREVIOUS NEXT
Tagged: #define #passing #parameter #function #javascript
ADD COMMENT
Topic
Name
7+8 =