bigDigits

Run Settings
LanguageJavaScript
Language Version
Run Command
let bigNumbers = [ [ " 00000 ", " 00 00 ", " 00 00 ", " 00 00 ", " 00000 ", ], [ " 11 ", " 111 ", " 11 ", " 11 ", " 1111 ", ], [ " 22222 ", " 22 22 ", " 22 ", " 22 ", " 2222222 ", ], [ " 3333 ", " 33 ", " 3333 ", " 33 ", " 3333 ", ], [ " 4 ", " 4 ", " 4 4 ", " 4444444 ", " 4 ", ], [ " 555555 ", " 55 ", " 55555 ", " 55 ", " 55555 ", ], [ " 66 ", " 66 ", " 666666 ", " 66 66 ", " 66666 ", ], [ " 7777777 ", " 77 ", " 77 ", " 77 ", " 77 ", ], [ " 88888 ", " 88 88 ", " 88888 ", " 88 88 ", " 88888 ", ], [ " 99999 ", " 99 99 ", " 99999 ", " 99 ", " 99 ", ] ] function printNumbers(numbers) { console.log('\n') let arrayOfnumbers = numbers.toString().split("").map(n => parseInt(n)) for(let r = 0; r < bigNumbers[0].length; r++) { let row = "" for (let n = 0; n < arrayOfnumbers.length; n++) { row += bigNumbers[arrayOfnumbers[n]][r] } console.log(row) } console.log('\n') } printNumbers(1988) printNumbers(2001) printNumbers(1999) printNumbers(2015) printNumbers(2020)
Editor Settings
Theme
Key bindings
Full width
Lines