Write two functions:
firstArg() should return the first parameter passed in.lastArg() should return the last parameter passed in.firstArg(1, 2, 3) ➞ 1
lastArg(1, 2, 3) ➞ 3
firstArg(8) ➞ 8
lastArg(8) ➞ 8undefined if the function takes no parameters.firstArg and lastArg functions should return the same value.arguments object which keeps track of the parameters being passed in. Check the Resources tab to learn more.