Home
Public posts
API
Home
Public posts
API
Sign in with GitHub
Untitled.txt
JavaScript
Share
My Codes
Sign in
Editor
Preview
1
function gagarin() {
2
let result = "";
3
4
for (let i = 20; i >= 0; i -= 4) {
5
result += i;
6
7
if (i > 0) {
8
result += ", ";
9
}
10
}
11
12
result += " Поехали!";
13
14
return result;
15
}
16
console.log(gagarin(201612));
Auto run
Auto clear
Run
Click Run to execute JavaScript.