Miscellaneous Operator

java script

We will discuss two operators here that are quite useful in JavaScript: theconditional operator (? 🙂 and the typeof operator. Conditional Operator (? 🙂 The conditional operator first evaluates an expression for a true or false value and then executes one of the two given statements depending upon the result of the evaluation. Sr.No Operator … Read more

JavaScript Comparison Operators

javascript

JavaScript supports the following comparison operators − Assume variable A holds 10 and variable B holds 20, then − Sr.No Operator and Description 1 = = (Equal) Checks if the value of two operands are equal or not, if yes, then the condition becomes true. Ex: (A == B) is not true. 2 != (Not … Read more

JavaScript Operator

javascript

Let us take a simple expression 4 + 5 is equal to 9. Here 4 and 5 are calledoperands and ‘+’ is called the operator. JavaScript supports the following types of operators. Arithmetic Operators Comparision Operators Logical (or Relational) Operators Assignment Operators Conditional (or ternary) Operators Lets have a look on all operators one by … Read more

JavaScript Datatype

JavaScript Datatype One of the most fundamental characteristics of a programming language is the set of data types it supports. These are the type of values that can be represented and manipulated in a programming language. JavaScript allows you to work with three primitive data types − Numbers, 123, 120.50 etc. Stringsof text e.g. “This … Read more