TS1128

error TS1128: Declaration or statement expected.

Broken Code ❌

1
=

Fixed Code ✔️

A declaration specifies the data and a statement specifies some action with that data:

1
2
3
4
// Declaration
let MY_NUMBER = 1;
// Statement
MY_NUMBER = MY_NUMBER + 1;