For this Question: You are given a function <code>reverseString</code>, which takes in a string as a parameter. Your task is to complete the function such that it returns the reverse of the string.(hello changes to olleh)

// Complete the reverseString function 

function reverseString(n) {
//Write Code Here
}A string nReturns the reverse of nconst n = 'hello'

reverseString(n) //displays 'olleh' in console, I have written this Solution Code: function reverseString (n) {
  return n.split("").reverse().join("");
}, In this Programming Language: JavaScript, Now tell me if this Code is compilable or not?