Question: Pls help me with this in JS/JavaScript Programming b. Write a JavaScript program that will convert Arabic number to Number word (1-3999). Examples: Input a
Pls help me with this in JS/JavaScript Programming
b. Write a JavaScript program that will convert Arabic number to Number word (1-3999). Examples: Input a number: 2021 Two thousand twenty one Input a number: 592 Five hundred ninety two var num = prompt ("Input Arabic number"); Thou = Math.floor (num/1000); Huns = Math.floor (num 1000/100); Tens = Math.floor (numo1000\%100/10); ones = Math.floor (num\%1000\%100\%10); if (Thou == 1) ans = "One Thousand"; else if (Thou== 2) ans = "Two Thousand"; if (Huns == 1) ans1="One Hundred"; else if (Huns== 2) ans1=
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
