Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to call a function javascript

//  we create a function by typing the keyword " function" + Function's name and ( we add the parameter here )
// {
//     the function body 
// }

// we call the function by typing it's name without the keyword and we add ()

function second (name){ 
    name = "Elmustafa";
    alert(name);
}

first();
Source by github.com #
 
PREVIOUS NEXT
Tagged: #call #function #javascript
ADD COMMENT
Topic
Name
1+9 =