// Create an empty object
const object1 = {};
// Create a unique symbol 'a'
a = Symbol('a');
// Retrieve or create a symbol with key 'a'
b = Symbol.for('a');
// Get an array of symbols belonging to object1
const objectSymbols = Object.getOwnPropertySymbols(object1);
// Output the length of the array containing symbols
console.log(objectSymbols.length);