Do you want to make a JavaScript game high score list? Use JavaScript, The Fetch API, JSON, and PHP to build a multiplayer high score list. Players all over the world can compete to see their name on your game’s high score list, on the web.

~ Time Stamps ~
JSON: 0:53
HTML: 1:16
JavaScript: 2:04
Fetch API - read JSON data: 2:17
Use JavaScript to display JSON data in a list: 4:06
Reset Game Form JavaScript Function: 7:15
Fetch API - Submit Form: 8:05
Submit Button Event Listener: 8:06
FormData Object: 9:22
* append a form data object
Example: formData.append(“level”,
last_level); Where “level” is the key and
the variable
. last_level holds the data that level will
point to
Fetch Post Method: 9:38
PHP: 10:34
POST data: 10:35
Read JSON file: 11:24
Logic to create new high score data: 11:44
Write to JSON file: 13:56

#js #javascript

Make a JavaScript Game High Score List
7.15 GEEK