Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // https://en.wikipedia.org/wiki/English_numerals
- const ones = "onetwothreefourfivesixseveneightnine".length;
- const tens = "twentythirtyfortyfiftysixtyseventyeightyninety".length;
- const onetotwenty = ones + "teneleventwelvethirteenfourteenfifteensixteenseventeeneighteennineteen".length;
- const twentytohundred = ones * 8 + tens * 10;
- const onetohundred = twentytohundred + onetotwenty;
- console.log(ones * 100 + "hundred".length * 900 + "and".length * 891 + onetohundred * 10 + "onethousand".length);
Advertisement
Add Comment
Please, Sign In to add comment