Complete the code to declare a function named greet.
function [1]() { console.log('Hello!'); }
The function name should be greet as requested.
Complete the code to declare a function named add that takes two parameters.
function [1](a, b) { return a + b; }
The function should be named add as per the instruction.
Fix the error in the function declaration to make it valid.
function [1](name) { console.log('Hi, ' + name); }
Function names cannot start with a number or contain hyphens. greet is a valid name.
Fill both blanks to declare a function named multiply that returns the product of two numbers.
function [1](x, y) { return x [2] y; }
The function name should be multiply and the operator for multiplication is *.
Fill all three blanks to declare a function named greetUser that takes a name and returns a greeting message.
function [1]([2]) { return `Hello, $[3]!`; }
The function name is greetUser. The parameter is name, and the template uses name to greet.
