Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
10
Task/Thue-Morse/JavaScript/thue-morse-1.js
Normal file
10
Task/Thue-Morse/JavaScript/thue-morse-1.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(function(steps) {
|
||||
'use strict';
|
||||
var i, tmp, s1 = '0', s2 = '1';
|
||||
for (i = 0; i < steps; i++) {
|
||||
tmp = s1;
|
||||
s1 += s2;
|
||||
s2 += tmp;
|
||||
}
|
||||
console.log(s1);
|
||||
})(6);
|
||||
Loading…
Add table
Add a link
Reference in a new issue