// Practice Set · JS JSON · guest

Guest practice: this set is not saved and does not count.

Question 1 of 5 from: JSON Intro

What does this log?

const s = '{"a":1}';
console.log(typeof s, typeof JSON.parse(s));
Question 2 of 5 from: JSON Stringify

What does this log?

console.log(JSON.stringify({ a: 1, b: undefined, c: [undefined, NaN] }));
Question 3 of 5 from: JSON Fetch

fetch("missing.json") asks a working server for a file that does not exist, and the server answers 404. What happens?

Question 4 of 5 from: JSON HTML

A script on a page uses document.getElementById("list") but the <ul id="list"> comes AFTER the script. What goes wrong?

Question 5 of 5 from: JSON vs XML

What does DOMParser do when it is given broken XML?

Ready to submit?

Click a question to go back and check it. After you submit, you will see the right answer and an explanation for every question. As a guest, nothing is saved.