TS1121
Octal literals are not allowed. Use the syntax '0o0'.
Broken Code ❌
new Money(200,00)Solution:
Remove the extra zero to prevent the JavaScript interpreter from treating it as an octal literal.
Fixed Code ✔️
new Money(200, 0);Octal literals are not allowed. Use the syntax '0o0'.
new Money(200,00)Remove the extra zero to prevent the JavaScript interpreter from treating it as an octal literal.
new Money(200, 0);