typescript while

Solutions on MaxInterview for typescript while by the best coders in the world

showing results for - "typescript while"
Lia
29 May 2019
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)
Herman
14 Jan 2017
1let i: number = 2;
2
3while (i < 4) {
4    console.log( "Block statement execution no." + i )
5    i++;
6}