'use strict'; let obj1 = {}; Object.defineProperty(obj1, 'x', { value: 42, writable: false }); // assignment to a non-writable property obj1.x = 9; // throws an error