The createThing function is a factory function that returns a Thing object. To get your string, you just need to call the Thing#getThing method:
constthing=createThing();console.log(thing.getThing());// prints "I'm a Thing"
The `createThing` function is a factory function that returns a `Thing` object. To get your string, you just need to call the `Thing#getThing` method:
```ts
const thing = createThing();
console.log(thing.getThing()); // prints "I'm a Thing"
```