Select Git revision
objectDestructuring.js
Forked from
SOFT Core / SOFT 260 / JavaScript Practice
Source project has a limited visibility.
-
Brady James Garvin authoredBrady James Garvin authored
objectDestructuring.js 480 B
export function summarize(record) {
// INSTRUCTIONS: Write a single assignment statement to extract `record.type`
// and `record.name` to the variables `type` and `name` so that the return
// statement below can use them.
//
// Resources:
// <https://javascript.info/destructuring-assignment#object-destructuring>
// <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment>
return `Record of type ${type}: ${name}`;
}