Javascript Basis Flashcards

1
Q
  1. Begroeting (p4)

Maak begroeting.html en begroeting.js.
 Toon in de pagina de tekst Goede morgen. als het uur kleiner is dan 12.
 Toon in de pagina de tekst Goede middag .als het uur kleiner is dan 18.
 Toon anders de tekst Goede avond.

A

antwoor p16

Begroeting

<div></div>

2.1.2 begroeting.js

"use strict";
document.getElementById("begroeting").innerText = begroeting();
function begroeting() {
const uur = new Date().getHours();
if (uur < 12) {
return "Goede morgen.";
}
if (uur < 18) {
return "Goede middag.";
}
return "Goede avond";
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

spaties p4

A

p16

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

klinkers p4

A

klinkers p17

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

palindroom p4

A

palindroom p18

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

dubbelspel p5

A

dubbelspel p18

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

plaats p5

A

plaats p19

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

landen p5

A

landen p19

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

disabled p5

A

disabled p20

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

standbeeldlijst p6

A

standbeeldlijst p20

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

marsepein p6

A

marsepein p21

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

planning p7

A

planning p21

How well did you know this?
1
Not at all
2
3
4
5
Perfectly