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