Notice: Constant WP_MEMORY_LIMIT already defined in /home/javawith/public_html/codesjava.com/wp-config.php on line 107

Notice: Constant WP_MAX_MEMORY_LIMIT already defined in /home/javawith/public_html/codesjava.com/wp-config.php on line 108
While loop in TypeScript - CodesJava

CodesJava

Easy learning with example program codes

TypeScript while loop tutorial


Notice: Undefined variable: footnotelist in /home/javawith/public_html/codesjava.com/wp-content/plugins/latex2html/inc/core.php on line 475

The while loop repeatedly executes a block of statements until a particular condition is true. It first check the condition and executes a block of statements if condition is true.

Syntax:

while(condition){
 //Block of statements 
}

TypeScript while loop example:

var num:number=1;  
while (num<=10)  {  
console.log(num);
num++;
}

 

Please follow and like us:
error








Copyright © 2019 CodesJava DMCA.com Protection Status