1var n: number = 5;
2while (n > 5) {
3 console.log("Entered while : " + n);
4 n++;
5}
6do {
7 console.log("Entered do…while : " + n);
8 n++;
9}
10while (n > 5)
1let i: number = 2;
2
3while (i < 4) {
4 console.log( "Block statement execution no." + i )
5 i++;
6}