alternate logic for for loop in typescript code example
Example: typescript while
let i: number = 2;
while (i < 4) {
console.log( "Block statement execution no." + i )
i++;
}
let i: number = 2;
while (i < 4) {
console.log( "Block statement execution no." + i )
i++;
}