Last active
October 7, 2018 11:22
-
-
Save fritsvt/da95a286b34dd7a771d0dad85020e06b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Voorbeeld</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Staat de onderstaande tag op de goede positie? --> | |
<img src="https://ihate.space/AX6p91I.gif" alt="beschrijving"> | |
</head> | |
<body> | |
<p>html body</p> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Button styling | |
*/ | |
#button { | |
border: 1px solid black; | |
background: #eee; | |
padding: 10px 30px 15px 20px; | |
transition: 200ms; | |
color: #333; | |
border-radius: 5px; | |
} | |
#button:hover { | |
background: #333; | |
color: #fff; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const grades = [7, 8, 5]; | |
const gradesSum = grades.reduce( (total, grade) => { | |
return total + grade; | |
}); | |
const finalGrade = (gradesSum / grades.length).toFixed(1); | |
// Wat zal er in de console komen te staan? | |
console.log(finalGrade); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NIKS 18 leeftijd controle. | |
document.title = 'NIKS 18!'; | |
const age = prompt('Wat is uw leeftijd?'); | |
if (age < 18) { | |
// De gebruiker is jonger dan 18 | |
alert('NIKS 18!'); | |
} else { | |
// De gebruiker is 18 of ouder | |
alert('SAUFEN!'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment