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