You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test.md
+16-7Lines changed: 16 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -3,19 +3,25 @@
3
3
You’ll be doing a final JavaScript test. It will be about all the JavaScript you’ve learned, from JavaScript 1 to JavaScript 3.
4
4
5
5
## Practical information
6
-
- The test will start at **10.30 until 11.30**. The door will open at 10.15. **Be on time!**
7
-
- It will be done online and you can use google, so please bring your laptop.
6
+
7
+
- The test will last **2 hours**.
8
+
- It will be done on the computer.
8
9
- You can’t use your old code.
9
-
- There will be 5 or 6 questions.
10
+
- There will be 6 or 7 questions.
10
11
11
12
## Purpose of the test
13
+
12
14
The purpose of this exam is to test your comprehension of JavaScript
15
+
13
16
- The goal for us is to know how solid your knowledge is and if you need any extra assistance throughout the program.
14
17
- The goal for you is to test how well enough you master the material so far.
18
+
15
19
Like the homework you will get feedback and are expected to improve upon your weak points.
16
20
17
21
## Test material
22
+
18
23
The test will be about all main JavaScript concepts we have discussed for the past weeks of JS. The following are the most important that will be tested:
24
+
19
25
-`Functions & Variables`
20
26
-`Scope`
21
27
-`Loops`
@@ -28,30 +34,33 @@ The test will be about all main JavaScript concepts we have discussed for the pa
28
34
-`Try…catch`
29
35
30
36
## Preparation
37
+
31
38
Advice on how to optimally prepare:
39
+
32
40
- Find out 2 things about each concepts listed above: (1) how does the basic structure look and (2) what is the most common use case.
33
41
- Ask questions through Slack to your teachers and/or your classmates.
34
42
- Practice for understanding (why something is the case), NOT just for repetition shake (and hoping ‘you will understand it one day’).
35
43
- Make a summary of all the study material.
36
44
- After you prepared try to make the sample questions that are in this file.
37
45
38
46
## During the test
47
+
39
48
Advise on how to make a test:
40
-
-**Look for low hanging fruit**. Which of the assignments is easiest for you to do? Tackle that one first.
49
+
50
+
-**Look for low hanging fruit**. Which of the assignments is easiest for you to do? Tackle that one first.
41
51
-**When writing your code, write small chunks at a time, testing each time before continuing**. Use temporary console.log statements to show intermediate results (remove when no longer needed). Don't continue until the code written sofar is working correctly. If you write a whole bunch of code without intermediate testing it becomes difficult to pinpoint where issues occur.
42
52
-**If you get stuck in an assignment, move on** to the next one. You can always come back later if time permits.
43
53
- When writing code for the browser, **always open the Chrome Developer Tools**. Watch out for error messages in the browser console. Inspect the network tab to examine the data returned from a remote API.
44
54
-**Don't over-deliver**. If styling is not required by the assignment, skip it. If time permits, you can do it later. The same goes for handling fetch errors. Focus on delivering a minimum working version that meets the requirement. Ticking off a working version again reduces your stress level. Come back later, if time permits, to embellish your solutions.
45
55
-**Don't use Google as a replacement for common sense.**
46
-
- After finishing an assignment, read the question again to **make sure you actually gave an answer to the question.**
56
+
- After finishing an assignment, read the question again to **make sure you actually gave an answer to the question.**
47
57
- Before handing in the test, read it all over again to **pick out the small mistakes.**
48
58
49
59
## Sample questions
50
60
51
61
1. Using JavaScript only (adding HTML to index.html is NOT allowed), create a button element (with text "click me!") and an empty image element and add it to the document. When the button is clicked, insert an image URL into the <img> tag and remove the button. Use the following image URL: https://thehub.dk/files/5ad4b4a9f9ac4aa13c3d2d58/logo_upload-6d537cf7e5de664db275b32b3c6ae12d.png
52
62
53
63
2. Make an API call using the Fetch API or the regular XMLHttpRequest (whichever one you're more comfortable with). Use the following API: https://reqres.in/api/users
54
-
Parse the response and then display the "first_name" and "last_name" of the first three users within the DOM (inside an unordered list)
64
+
Parse the response and then display the "first_name" and "last_name" of the first three users within the DOM (inside an unordered list)
55
65
56
66
If there’s anything unclear please let us know. Also, if any of you need additional support, now is the moment to let us know as we could pair you up with someone to answer any questions you may have.
0 commit comments