Skip to content

Commit 728a9a0

Browse files
committed
add archives
1 parent c6fbe71 commit 728a9a0

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

comparacao.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* JS - Tipos de Comparação
3+
* @author Luciana Muniz Freire
4+
*/
5+
6+
var cpf = "333";
7+
var idade = 333;
8+
if (cpf === idade) {
9+
alert("As variáveis são super iguais! :)");
10+
} else {
11+
alert("As variáveis NÃO são super iguais! :(");
12+
}

incremento.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* JS - Estruturas de incremento
3+
* @author Luciana Muniz Freire
4+
*/
5+
var a = 5;
6+
var b = a + 2; //expressão de incremento
7+
alert(b);

loops.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* JS - Tipos de Loop
3+
* @author Luciana Muniz Freire
4+
*/
5+
6+
// While
7+
var i = 1;
8+
While (i < 10){
9+
console.log("passo: " + i);
10+
i++;
11+
}
12+
13+
// Do While
14+
var i = 1;
15+
Do {
16+
console.log("passo: " + i);
17+
} while (i < 10)
18+
i++;
19+
20+
// For
21+
var i = 1;
22+
for (i = 1; i < 10; i++){
23+
console.log("passo: " + i);
24+
}

0 commit comments

Comments
 (0)