Javascript Tutorial - Javascript Basic Operator | Arithmetic, Logical , typeof Javascript Operator

preview_player
Показать описание
Javascript Tutorial - Javascript Basic Operator | Arithmetic, Logical, typeof Javascript Operator

#javascriptOperator #operator #javascript

What is the Operator?

An operator performs some operation on single or multiple operands (data value) and produces a result. Let us take a simple expression 4 + 5 is equal to 9. Here 4 and 5 are called operands and ‘+’ is called the operator. JavaScript supports the following types of operators.

Arithmetic Operators

Comparison Operators

Logical (or Relational) Operators

Assignment Operators

Conditional (or ternary) Operators ( ? : ) like if condition

Other Usefull operator (typeOf)

Lets learn about javascript operators,
For Operators, We can take example of math operators like we already know plus minus divide and all.
So, I start from Math Operators in javascript.
Now define a variable,
Var yearJohn = 2018 - 28;
So its is math operator.

I start from plus, multiple, divide and minus operator they both are part of Math operators.
Math Operators
Var year, yeahJohn, yearMark;
now=2018;
yearJohn = now - 28;
yearJohn = now - 38;

Logical operators
Now I define two javascript variable.
Var johnAge = 28;
Var markAge = 38;
Var olderAge = johnAge less then markAge;
Typeof Operator
Its a bollen variable os is a boolean variable
Var x;

Learn school online is a way to educate online to YouTube viewers. Learn school online provide knowledge, education, and passion for a subject beyond the classroom and share it with audiences worldwide.

Subscribe to our Learn School Online Video YouTube channel to receive notifications when we post new videos.

Browse our PLAYLISTS to find a video series. Click the VIDEOS button on our main channel page to see all our videos.

for Facebook Video Link

for google plus video link
Рекомендации по теме
Комментарии
Автор

Good basis tutorial of JavaScript operators

lovsan
join shbcf.ru