From dbb12fb635cf5928d37be1b0436093edb7dd81f5 Mon Sep 17 00:00:00 2001 From: FernandaBroch Date: Wed, 2 Sep 2020 14:49:32 -0300 Subject: [PATCH 1/2] Add Fernanda Broch list to exercicios/aula1 --- Aulas-HTML/exercicios/aula1/index.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Aulas-HTML/exercicios/aula1/index.html b/Aulas-HTML/exercicios/aula1/index.html index 45c22c1..2d73e10 100644 --- a/Aulas-HTML/exercicios/aula1/index.html +++ b/Aulas-HTML/exercicios/aula1/index.html @@ -14,3 +14,19 @@ - Abrir um pull request para o repositório original (da Womakers) - Acompanhar o prazo e marcar a entrega no Classroom --> + + + + + + + Fernanda Broch + + + + + From 8b70890a59d2c835da88abd10d28b217f97f45a8 Mon Sep 17 00:00:00 2001 From: FernandaBroch Date: Thu, 24 Sep 2020 22:04:19 -0300 Subject: [PATCH 2/2] Exercicio1 - JavaScript - {Fernanda Broch} --- aulas-javascript/exercicios/aula1/index.html | 12 ++++++++++++ aulas-javascript/exercicios/aula1/script.js | 15 +++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 aulas-javascript/exercicios/aula1/script.js diff --git a/aulas-javascript/exercicios/aula1/index.html b/aulas-javascript/exercicios/aula1/index.html index e69de29..367476d 100644 --- a/aulas-javascript/exercicios/aula1/index.html +++ b/aulas-javascript/exercicios/aula1/index.html @@ -0,0 +1,12 @@ + + + + + + Já pode dirigir + + + + + + \ No newline at end of file diff --git a/aulas-javascript/exercicios/aula1/script.js b/aulas-javascript/exercicios/aula1/script.js new file mode 100644 index 0000000..713d7a4 --- /dev/null +++ b/aulas-javascript/exercicios/aula1/script.js @@ -0,0 +1,15 @@ +let idade = prompt('Qual é sua idade?'); + +function checarSePodeDirigir(idade){ + if(isNaN(idade)){ + alert('Não é número!') + }else{ + if(idade > 18){ + alert('Já pode dirigir!') + }else{ + alert('Ainda não pode dirigir') + } + } +} + +checarSePodeDirigir(idade)