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 | |
|---|---|---|
| 1Object.keys(person) | AReturns an array of person's values | |
| 2Object.values(person) | BWrong - 'Object' must start with a capital O | |
| 3Returns an array pairing each key with its value | CReturns an array of person's keys | |
| 4Collects only the property names of an object | DObject.entries(person) | |
| 5console.log(object.keys(a)); | EWrong - 'keys' must start with a lowercase k | |
| 6console.log(Object.Keys(b)); | FObject.keys(car) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Object.keys() — Returns an array containing all the keys of a given object.console.log(Object.keys(person));console.log(Object.values(person));console.log(Object.entries(person));let names = Object.keys(car);let vals = Object.values(car);