Skip to content

Commit e4df91d

Browse files
committed
updated file name, output format changes, links updated
1 parent 330b178 commit e4df91d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/content/tutorials/en/getting-started-with-nodejs.mdx.todo renamed to src/content/tutorials/en/getting-started-with-nodejs.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ featuredImage: ../images/featured/node.png
77
featuredImageAlt: A p5.js logo with musical notes above it has arrows labeled with HTTP methods pointing to a cloud labeled “Internet”. Above the cloud is an icon that reads “http\://”. Arrows point from the cloud to a pink cube labeled “Web Server” with the Node.js logo above it.
88
relatedContent:
99
references:
10-
- en/p5/preload
10+
- en/p5/async_await
1111
- en/p5/loadjson
1212
authors:
1313
- Layla Quiñones
@@ -197,9 +197,8 @@ let songs;
197197

198198
async function setup() {
199199
createCanvas(400, 400);
200-
// Fetch the list of songs from the server
201-
const response = await fetch('/songs');
202-
songs = await response.json();
200+
// Fetch the list of songs from the server via loadJSON
201+
songs = await loadJSON('/songs');
203202
console.log(songs);
204203
}
205204

0 commit comments

Comments
 (0)