Skip to main content Accessibility Feedback



Remove an item from an object. Use the delete operator on the key to remove.

let lunch = {
	sandwich: 'turkey',
	chips: 'cape cod',
	drink: 'soda'

// Remove the chips key from the lunch object
delete lunch.chips;

// logs {sandwich: 'turkey', drink: 'soda'}

Join the Lean Web Club! Coaching. Courses. Coding resources. Get the skills, confidence, and support you need to learn front-end web development and achieve long-term success.

Find this useful? You can support my work by purchasing an annual membership.