For this Question: Given a number, you task is to reverse its digits. If the reversed number contains 0s in the beginning, you must remove them as well.Functional problem, Number is the input

Constraint:-
1<=size of n<=100000Output is a single line containing reversed number n.Sample Input
123445

Sample Output
544321

Sample Input
16724368

Sample Output
86342761, I have written this Solution Code: // str is input string
function reverseNumber(num) {
    // write code here
    // do not console.log
    // return the sum
    const numStr = `${num}`
    return Number(numStr.split('').reverse().join(''))
}, In this Programming Language: JavaScript, Now tell me if this Code is compilable or not?