index.ts80 chars6 lines

In this code block, we use a for loop to iterate from 1 to 100. Then we use an if statement with the modulo operator to check if the current number is even (i.e., it has no remainder when divided by 2). If the number is even, we print it to the console.

print the numbers from 1 to 100, but only print the even numbers in typescript

find the largest number in the following list of numbers: [1, 3, 4, 2, 5] in typescript

create a function that calculates volume of a cube in typescript

print the numbers from 1 to 100 in typescript

loop in typescript

define a function that takes a list of numbers as an argument and returns the sum of the numbers in the list. in typescript

how to get the power set of a set in typescript

how to get all combinations of a set in typescript

mul in typescript

create a loop in typescript

gistlibby LogSnag