typescript declare variable with type and value code example Example: how to declare a boolean in typescript let isDone: boolean = false;