Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exerc1 javascript #198

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Aulas-HTML/exercicios/aula1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,19 @@
- Abrir um pull request para o repositório original (da Womakers)
- Acompanhar o prazo e marcar a entrega no Classroom
-->

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fernanda Broch</title>
</head>
<body>
<ul>
<li>Aprender frontend e desenvolver uma página.</li>
<li>Conhecer mulheres maravilhosas e fazer networking!</li>
<li>Me sentir confiante para poder ensinar e apoiar outras mulheres que queiram aprender também <3 </li>
</ul>
</body>
</html>
12 changes: 12 additions & 0 deletions aulas-javascript/exercicios/aula1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Já pode dirigir</title>
<script src="script.js" defer></script>
</head>
<body>

</body>
</html>
15 changes: 15 additions & 0 deletions aulas-javascript/exercicios/aula1/script.js
Original file line number Diff line number Diff line change
@@ -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)