Skip to content

Commit ee5b075

Browse files
committed
Adicionando os exercicios feitos em sala.
1 parent 90e390a commit ee5b075

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

Exemplos/ex01/index.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<html>
1+
<!DOCTYPE html>
2+
<html lang="pt-br">
23
<head>
3-
<!--Configurações iniciais-->
4-
<title>Exemplo 1</title>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Exercicio 1</title>
57
</head>
68
<body>
7-
<!--Estruturação do site-->
8-
99
<script src="scripts/main.js"></script>
1010
</body>
1111
</html>

Exemplos/ex02/index.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="pt-br">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Exemplo 2</title>
7+
</head>
8+
<body>
9+
<script src="scripts/main.js"></script>
10+
</body>
11+
</html>

Exemplos/ex02/scripts/main.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
Declaração / Atribuição
3+
var nome; // Declaração
4+
nome = 'Anderson'; // Atribuição
5+
*/
6+
7+
var nome = "Abner";
8+
console.log("Meu nome é: ", nome);
9+
10+
nome = 'Antônio';
11+
12+
//Entrada dinâmica
13+
var sanduiche = prompt("Qual o sanduiche voce gosta: ");
14+
15+
console.log(sanduiche);

0 commit comments

Comments
 (0)