Last active
August 29, 2015 14:26
-
-
Save antonkartashov/00994fa8298a64ee0052 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Осторожно! JavaScript | |
// Цикл for | |
for (var i = 0; i < 10; i++) { | |
console.log(i); | |
} | |
// Цикл while | |
var j = 0; | |
while (j < 10) { | |
j += 1; | |
console.log(j); | |
} | |
// Цикл do…while | |
var k = 0; | |
do { | |
k += 1; | |
console.log(k); | |
} while (k < 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment