Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
14
Task/Loops-Break/JavaScript/loops-break-4.js
Normal file
14
Task/Loops-Break/JavaScript/loops-break-4.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
console.log(
|
||||
(function streamTillInitialTen() {
|
||||
var nFirst = Math.floor(Math.random() * 20);
|
||||
|
||||
if (nFirst === 10) return [10];
|
||||
|
||||
return [
|
||||
nFirst,
|
||||
Math.floor(Math.random() * 20)
|
||||
].concat(
|
||||
streamTillInitialTen()
|
||||
);
|
||||
})().join('\n')
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue