Math Object in JavaScript

Math object is an important JavaScript object because it can be used to perform web-based mathematical calculations. It can compute data input by the user and then displays its output on the web page. It is very useful for programmer to design online applications that involve calculations and games. We will see examples that use Math object in later lessons. There are various methods and properties of the math object which we can use to perform mathematical calculations.

Read On…………………

 

Conditional Operators in JavaScript

We have learned how to use the If and Else keywords together with comparison and logical operators in previous lesson, now we will learn how to use conditional operators without using If and Else. Conditional operators let JavaScript program executes certain jobs according to certain conditions.

The format of the conditional operator is

Conditional Expression ? Execution 1: Execution 2

Read On…….