Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1JSON.stringify(person) | AJSON.parse(text) | |
| 2JSON.parse(json) | BWrong - 'parse' must be lowercase | |
| 3Converts a JS value into a JSON-formatted string | CJSON.stringify(data) | |
| 4Converts a JSON string into a usable JS value | DConverts a JSON string back into a JS value | |
| 5let j = json.stringify(obj); | EWrong - 'JSON' must be capitalized | |
| 6let o = JSON.Parse(text); | FConverts the person object into a JSON string |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
JSON.stringify() — Converts a JavaScript value into a JSON-formatted string.let json = JSON.stringify(person);let obj = JSON.parse(json);let text = JSON.stringify(data);let result = JSON.parse(text);let data2 = JSON.stringify({a: 1});