TS1127

error TS1127: Invalid character.

Broken Code ❌

1
# My comment

Fixed Code ✔️

Unlike in Python, inline comments cannot begin with a single hash sign (#) in TypeScript. You must use 3 slashes:

1
// My comment