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: curriculum/challenges/english/25-front-end-development/workshop-fcc-authors-page/641d9a19bff38d34d5a5edb8.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,36 +8,39 @@ demoType: onLoad
8
8
9
9
# --description--
10
10
11
-
All the HTML and CSS for this project has been provided for you. You can take a look at the two files to familiarize yourself with them.
11
+
In this workshop, you will learn how to work with the `fetch` API to load data from an external source and display it on a page filled with freeCodeCamp authors.
12
12
13
-
Start by getting the `#author-container` and `#load-more-btn` elements with the `.getElementById()` method. Assign them to the variables `authorContainer` and `loadMoreBtn`, respectively.
13
+
All of the HTML and CSS for this workshop has been provided for you. You can take a look at the two files to familiarize yourself with them.
14
14
15
-
The variables will not change, so use `const` to declare them.
15
+
When you are ready, start by accessing the `#author-container` and `#load-more-btn` elements. Remember you can use the `getElementById` or `querySelector` methods for this.
16
+
17
+
Then assign these elements to variables called `authorContainer` and `loadMoreBtn`, respectively.
16
18
17
19
# --hints--
18
20
19
-
You should use `document.getElementById()` to get the `#author-container` element.
21
+
You should have a variable called `authorContainer`.
0 commit comments