loading...

Discussion on: What’s your alternative solution? Challenge #1

Collapse
hume profile image
Horacio Rivero

ok, I will do it for educational purposes, don't do this *hit in your house hehe.


const r = (n) => n > 1 && (r(--n), console.log(n)); r(0xb)

for(let i = 10, c = 1;i--;console.log(c++));

Array.from('😀'.repeat(10), (_,i)=> console.log(i+1))

Array.from(''.padEnd(10), (_,i)=> console.log(i+1))

[].constructor.from(String.prototype.padEnd(0xa), (_, n)=> console.log(n+1))

Array.from(new Array(10), (_, i) => console.log(i+1))