Codistwa

Practice Data structures - Objects / Dictionaries - Quiz

beginner

level 1

You've read the guide, now test your knowledge of Data structures - Objects / Dictionaries! If you have any doubt, you can go back to the guide.
Liveprojectsmanning

Question 1

What is the result?

javascriptjavascript
1const toy = {
2    color: 'blue',
3    parts: 4
4}
5  
6const figurine = toy;
7
8console.log(figurine.parts);
Select...

Question 2

What is the result?

javascriptjavascript
1const toy = {
2    color: 'blue',
3    parts: 4
4}
5  
6const figurine = toy;
7figurine.size = 2.4;
8
9console.log(figurine);
Select...

Question 3

What is the result?

javascriptjavascript
1const toy = {
2    color: 'blue',
3    parts: 4,
4    size: 2.4
5}
6  
7delete toy['parts'];
8
9console.log(toy);
Select...