For this Question: Given a number N, you need to check whether the given number is Armstrong number or not. Now what is Armstrong number let us see below:
<b>A number is said to be Armstrong if it is equal to sum of cube of its digits. </b>User task:
Since this is a functional problem you don't have to worry about the input. You just have to complete the function <b>isArmstrong()</b> which contains N as a parameter.

Constraints:
1 <= N <= 10^4You need to return "true" if the given number is an Armstrong number otherwise "false"Sample Input 1:
1

Sample Output 1:
true

Sample Input 2:
147

Sample Output 2:
false

Sample Input 3:
371

Sample Output 3:
true
, I have written this Solution Code: function isArmstrong(n) {
    // write code here
    // do no console.log the answer
    // return the output using return keyword
    let sum = 0
    let k = n;
    while(k !== 0){
        sum += Math.pow( k%10,3)
        k = Math.floor(k/10)
    }

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