For this Question: Modify the <code>takeMultipleNumbersAndAdd </code> such that it can take any number of arguments 
and return its sum.

This is JS only question.Function should be able to take any number of argsSum of the numberstakeMultipleNumbersAndAdd(1, 2, 2) should return 5 because 1 + 2 + 2

takeMultipleNumbersAndAdd(-1, 2, -1, 5) should return 5, I have written this Solution Code: 
function takeMultipleNumbersAndAdd (...nums){
    // write your code here
    return nums.reduce((prev,cur)=>prev+cur,0)
    // return the output using return keyword
    // do not console.log it

}, In this Programming Language: JavaScript, Now tell me if this Code is compilable or not?