We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a858311 commit a7daa00Copy full SHA for a7daa00
script.js
@@ -17,7 +17,7 @@ async function fetchTodo(apiUrl) {
17
18
19
// Append data in DOM
20
-async function appendData(data) {
+function appendData(data) {
21
const container = document.querySelector('.append-titles');
22
data.forEach((item) => {
23
const newTitle = document.createElement('span');
@@ -29,7 +29,7 @@ async function appendData(data) {
29
// Helper function to store data from fetch function and pass on to appendData function
30
const getData = async () => {
31
const data = await fetchTodo(postApi);
32
- await appendData(data);
+ appendData(data);
33
}
34
35
window.onload = () => {
0 commit comments