File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
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