Complete the code to define a function named greet that takes one parameter called name.
function greet([1]) {
console.log(`Hello, ${name}!`);
}Complete the code to call the function greet with the argument 'Alice'.
greet([1]);Fix the error in the function definition to correctly set a default value for the parameter age.
function showAge(age [1] 18) { console.log(`Age is ${age}`); }
Fill the three blanks to define a function multiply that takes two parameters and returns their product.
function multiply([1], [2]) { return [1] [3] [2]; }
Fill both blanks to create a function that returns an object with keys as parameter names and values as their values.
function createObject([1], [2]) { return { [1]: [1], [2]: [2] }; }
