Guest practice: this set is not saved and does not count.
What does this log?
const s = '{"a":1}'; console.log(typeof s, typeof JSON.parse(s));
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">
What does DOMParser do when it is given broken XML?
DOMParser
null
SyntaxError
JSON.parse
parsererror
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