Problem Statement:

Create a script to read a number and print whether the given number is an Armstrong number or not. (Note: You have to use Math.floor( ) method)

Source Code:

ex4.html

ex4script.js

Output:

Click here for output