function create() { return { private #data: '', add(str) { this.#data += str; }, toString() { return this.#data; }, }; }