Mark As Completed Discussion

Let's test your knowledge. Fill in the missing part by typing it in.

Question 3 The function Math.max() gives the largest of the input paramters. A very simple illustration of the same is given below:

JAVASCRIPT
1console.log(Math.max(1, 2, 3));
2// expected output: 3

With this knowledge, answer the following questions pertinent to the code snippet given below:

JAVASCRIPT
1function maxplusone(a, b) {
2  return Math.max(a, b) + 1;
3}

Function maxplusone is _ function (Pure/Impure)

Write the missing line below.