JavaScript to check Strong Number!

Hello students and self-learners, here is another interesting JavaScript program for you to learn the fundamentals.

In this post, I am going to write a JavaScript program to check if the entered number is a Strong number or not.

What is a Strong number?
A strong number is a number if the factorial of its digit is equal to the number itself.

Eg: 145 is a strong number. Factorial of 145 is 1! + 4! + 5! = 1 + 24 + 120 = 145

So let’s write the JavaScript:

Just read the inline comments in the above script to understand it.

You can check the live demo here:


Related Posts

Leave a Reply