Spot the mistake when creating an instance of a TypeScript class.
class Dog { bark(): string { return "Woof!"; } } const rex = Dog(); console.log(rex.bark());
What is the bug in this code?