For this Question: Implement the function <code>round</code>, which should take a number which can be a float(decimal)
and return its result as an integer rounded of (Use JS In built functions)Function will take a float as input (can be negative or positive)Function will return a rounded off numberconsole. log(round(1.112)) // prints 1

console. log(round(1.9)) // prints 2

console. log(round(-0.66)) // prints -1, I have written this Solution Code: function round(num){
    // write code here
    // return the output , do not use console.log here
    return Math.round(num)
}, In this Programming Language: JavaScript, Now tell me if this Code is compilable or not?