File tree 3 files changed +31
-5
lines changed
3 files changed +31
-5
lines changed Original file line number Diff line number Diff line change 1
- < html >
1
+ <!DOCTYPE html>
2
+ < html lang ="pt-br ">
2
3
< 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 >
5
7
</ head >
6
8
< body >
7
- <!--Estruturação do site-->
8
-
9
9
< script src ="scripts/main.js "> </ script >
10
10
</ body >
11
11
</ html >
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change
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 ) ;
You can’t perform that action at this time.
0 commit comments