We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 239dcac commit 9b47ac3Copy full SHA for 9b47ac3
01-Basics/05-loop-for/app.js
@@ -0,0 +1,19 @@
1
+function whileLoop(){
2
+ let i = 0; // incremention
3
+ while(i < 11){
4
+ if( i === 5 ){
5
+ i++;
6
+ continue;
7
+ }
8
+ console.log(i);
9
+ i++; // i = i + 1;
10
11
+}
12
+
13
+function forLoop(){
14
+ for(let i = 0; i < 11; i++){
15
16
17
18
19
01-Basics/05-loop-for/index.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Learning JavaScript - Walker</title>
+ <link rel="stylesheet" href="style.css">
+</head>
+<body>
+ <h1>for Loop</h1>
+ <script src="app.js"></script>
+</body>
+</html>
01-Basics/05-loop-for/style.css
0 commit comments