Answers for "typescript while"

1

typescript while

var n: number = 5;
while (n > 5) { 
   	console.log("Entered while : " + n);
  	n++;
} 
do { 
   	console.log("Entered do…while : " + n);
  	n++;
} 
while (n > 5)
Posted by: Guest on April-25-2021
1

typescript while

let i: number = 2;

while (i < 4) {
    console.log( "Block statement execution no." + i )
    i++;
}
Posted by: Guest on May-09-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language