File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 32
32
- [ 26. Trabalhando com dados 04] ( #26-trabalhando-com-dados-04 )
33
33
- [ 27. Desafio Área da Circunferência] ( #27-desafio-área-da-circunferência )
34
34
- [ 28. Desafio área da circunferência - Resposta] ( #28-desafio-área-da-circunferência---resposta )
35
+ - [ 29. Desafio troca de valores] ( #29-desafio-troca-de-valores )
35
36
36
37
## Seção 1: Introdução Curso Desenvolvimento Web
37
38
@@ -245,4 +246,10 @@ Bons estudos e até a próxima!
245
246
246
247
[ Arquivo] ( fundamentos/inicio/desafio_area_resposta.js )
247
248
249
+ [ Commit] ( https://github.com/Alexandresl/Web-Moderno-com-JavaScript/commit/25972dcdd50fdaaa185120b26c42dd0b6690fa32 )
250
+
251
+ ### 29. Desafio troca de valores
252
+
253
+ [ Arquivo] ( fundamentos/inicio/desafio_troca.js )
254
+
248
255
[ Commit] ( )
Original file line number Diff line number Diff line change 6
6
*/
7
7
8
8
const PI = 3.141592 ;
9
- let raio = window . prompt ( "Digite o raio" ) ;
9
+ const raio = 10 ;
10
10
const areaCirc = PI * raio * raio ;
11
11
12
12
console . log ( "O valor da área é " + areaCirc + "m²" ) ;
Original file line number Diff line number Diff line change
1
+ let a = 7 ;
2
+ let b = 94 ;
3
+
4
+ // Depois da troca... a = 94 e b = 7
5
+
6
+ let temp = a ;
7
+ a = b ;
8
+ b = temp ;
9
+
10
+ console . log ( "a = " + a ) ;
11
+ console . log ( "b = " + b )
You can’t perform that action at this time.
0 commit comments