JavaScript Coding Practice
Practice typing real code syntax, including brackets, punctuation, and indentation. Snippets are for typing practice only and are never executed.
Object destructuring
Type the code exactly. Tab inserts four spaces. Code is not executed.
Progress: 0%
Current mismatches: 0
const user = {
name: "Ada",
role: "Developer",
active: true,
};
const { name, role } = user;
console.log(`${name} is a ${role}.`);
Type the code exactly, including spaces and indentation.