TS1155

error TS1155: ‘const’ declarations must be initialized.

Broken Code ❌

1
const name: string;

Fixed Code ✔️

1
const name: string = 'Benny';

Alternatively you can define a block-scoped local variable:

1
let name: string;