JavaScript Functions
<!DOCTYPE html> <html> <body> <h2>Passing arguments to parameters</h2> <script> function greet(name, city) { return "Hi " + name + " from " + city; } // "name" and "city" are parameters // "Ada" and "Paris" are arguments console.log(greet("Ada", "Paris")); // "Hi Ada from Paris" </script> </body> </html>