Contact: aviboots(AT)netvision.net.il
39,943 questions
51,884 answers
573 users
let n = 0; for (let i = 4; i > 0; i--) { s = ""; for (let j = 0; j < i; j++) { s += n } console.log(s); n++; } /* run: "0000" "111" "22" "3" */