const object1 = {}; Reflect.set(object1, 'property1', 42); console.log(object1.property1); // Expected output: 42 const array1 = ['duck', 'duck', 'duck']; Reflect.set(array1, 2, 'goose'); console.log(array1[2]); // Expected output: "goose"