Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript if statement

const max = 100;
let counter = 0;

if (counter < max) {
    counter++;
}

console.log(counter); // 1
Code language: JavaScript (javascript)
Source by www.typescripttutorial.net #
 
PREVIOUS NEXT
Tagged: #typescript #statement
ADD COMMENT
Topic
Name
1+9 =