Guest practice: this set is not saved and does not count.
What does this log?
const d = JSON.parse('{"a":[1,2],"b":null,"c":"x"}'); console.log(typeof d.a, Array.isArray(d.a), d.b, typeof d.c);
console.log(JSON.stringify({ a: 1, b: undefined, c: [undefined, NaN] }));
fetch("missing.json") asks a working server for a file that does not exist, and the server answers 404. What happens?
fetch("missing.json")
response.ok
fetch
catch
A script on a page uses document.getElementById("list") but the <ul id="list"> comes AFTER the script. What goes wrong?
document.getElementById("list")
<ul id="list">
In XML, every value is text unless the program reading it converts it.
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.
Check my answers