TypeScript number object

TypeScript number object: The TypeScript Number object represents numerical data which can be integers or floating-point numbers. TypeScript number constants/properties: Property Description MAX_VALUE It specify the largest possible value. MIN_VALUE It specify the smallest possible value. NaN Equal to a value that is not a number. NEGATIVE_INFINITY A value that is less than MIN_VALUE. POSITIVE_INFINITY … Read more

Android security features

Application Fundamentals How android app run in android operating system with security features: Before we have discuss that the foundation of the Android platform is the Linux kernel. So every android app relies on the Linux kernel. By default, android system gives each app a unique Linux user ID which is used only by the … Read more

TypeScript Function

A TypeScript function is a group of statements which is used for performing a specific task. It provides the facility of code re-usability. Typescript function declaration: function function_name() { // function body } Typescript function invocation: function_name(); Typescript Function Example: function hello() { //function definition console.log(“Hello World!”); } hello();//function invocation Typescript returning function Typescript returning … Read more

TypeScript do while loop

The do while loop repeatedly executes a block of statements until a particular condition is true. It first executes a block of statements and then check the condition. Syntax: do { //Block of statements }while(condition); TypeScript do while loop example: var num:number=1; do{ console.log(num); num++; } while (num

TypeScript while loop

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

TypeScript for in loop

The for in loop is used to iterate the properties of an object. Syntax: for(property in object){ //Block of statements } TypeScript for in loop example: var person = {Fname:”Rajeev”, Lname:”Johari”, Age:40}; var perproperty; for (perproperty in person) { console.log(perproperty + “: ” + person[perproperty ]); }  

TypeScript for loop

The for loop repeatedly executes a block of statements until a particular condition is true. Syntax: for(initialization; condition; statement){ //Block of statements } Where: initialization statement: is used to initialize the loop variable. boolean expression: is used for condition check whether returns true or false. statement: is used for either increment or decrements the loop … Read more

TypeScript switch statement

TypeScript switch statement is used to execute a block of statement based on the switch expression value. It is like if else if statement. Syntax: switch(expression){ case value1: //TypeScript block of statements break; case value2: //TypeScript block of statements break; … default: //TypeScript block of statements break; } TypeScript Switch Statement Example: var today:string; switch … Read more

TypeScript control statements

TypeScript control statement is used to control the flow of program based on the specified condition. TypeScript control statements: 1. If Statement 2. If else statement 3. if else if statement TypeScript If Statement: If statement is used to execute a block of statements if specified condition is true. Syntax: if(condition){ //Block of TypeScript statements. … Read more

TypeScript operators list

Commonly used TypeScript operators list: Arithmetic Operators Comparison Operators Bitwise Operators Logical Operators Assignment Operators Conditional Operator String Operator typeof Operator   TypeScript Arithmetic Operators: Arithmetic operators are used to perform arithmetic operations. TypeScript Arithmetic Operators List: Operator Description Example + Addition 30+20 = 50 – Subtraction 30-10 = 20 * Multiplication 10*10 = 100 … Read more