Maybe
const returnHundred = function returnHundred () { const num = Math.floor(Math.random() * 1000) return num === 100 ? num : returnHundred() }
for
clever, nice
100 is the ascii ordinal designation of 'd' which is the 10th letter of the function name
How does this work :o
:o
Loading collection data...
Maybe
const returnHundred = function returnHundred () { const num = Math.floor(Math.random() * 1000) return num === 100 ? num : returnHundred() }
for
clever, nice
100 is the ascii ordinal designation of 'd' which is the 10th letter of the function name
How does this work :o
:o