Function parameters part 3 Get link Facebook X Pinterest Email Other Apps January 04, 2019 Function Parameters You can define a single function, and pass different parameter values (arguments) to it. function sayHello(name) { alert("Hi, " + name);}sayHello("David");sayHello("Sarah");sayHello("John");Try It Yourself This will execute the function's code each time for the provided argument. Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment