Skip to content

Instantly share code, notes, and snippets.

View ernestohegi's full-sized avatar
🐲
Logic will get you from A to B. Imagination will take you everywhere. - AE

Ernesto Hegi ernestohegi

🐲
Logic will get you from A to B. Imagination will take you everywhere. - AE
View GitHub Profile
// Testing Object.freeze().
const list = { numbers: [1, 2, 3] };
console.log('adding 4 to the unfreezed list of numbers');
list.numbers.push(4);
console.log('unfreezed', list);