string variable in typescript code example Example: how to declare variable in typescript const variableSample: number = 0; let variableSample: number = 0;