backpack:
[
pencil
,
eraser
,
swatchbook
]
Your task is to add the string 'compass' to the end of the array 'backpack'. You must use the push() method. Hint
1
2
3
4
5
6
let backpack = ['pencil', 'eraser', 'swatchbook'];
console.log(backpack);
// Expected outcome: ['pencil', 'eraser', 'swatchbook', 'compass']
backpack:
[
pencil
,
eraser
,
swatchbook
]