* fix: restructure certifications guide articles * fix: added 3 dashes line before prob expl * fix: added 3 dashes line before hints * fix: added 3 dashes line before solutions
		
			
				
	
	
	
		
			676 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			676 B
		
	
	
	
	
	
	
	
title
| title | 
|---|
| Use the delete Keyword to Remove Object Properties | 
Use the delete Keyword to Remove Object Properties
Solutions
Solution 1 (Click to Show/Hide)
let foods = {
  apples: 25,
  oranges: 32,
  plums: 28,
  bananas: 13,
  grapes: 35,
  strawberries: 27
};
// change code below this line
delete foods.oranges;
delete foods.plums;
delete foods.strawberries;
// change code above this line
console.log(foods);
Relevant Links
- Developer.mozilla.org provides a comprehensive tutorial on the delete operator.