TypeScript

Switch Statement in Typescript

The Typescript switch statement (or switch case statement) evaluates a given expression. It then matches the result of that expression with the values in the case clause. If it finds a match, then it executes the statements associated with that matching case clause. It also executes the statements in cases that follow the matching case. You can break out of a switch using the break statement or using the return statement

Switch Statement in Typescript Read More »

Operator Precedence in Typescript

The operator precedence along with their associativity determines how Typescript evaluates an expression when there are multiple operators present in the expression. Each Typescript operators have certain precedence. The Typescript evaluates the operators with higher precedence first. If a group of operators has the same Precedence, then it evaluates them either left to right or right to left, depending on the operator’s associativity. The table end of the article. has a list of all operators, with their precedence along with associativity.

Operator Precedence in Typescript Read More »

Scroll to Top