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

Publicado em: 19 Fevereiro 2019
no canal de: Learn school online
83
2

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;
console.log(yearJohn);
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;
console.log(yearJohn);
console.log(now +2);
console.log(now *2);
console.log(now /2);

Logical operators
Now I define two javascript variable.
Var johnAge = 28;
Var markAge = 38;
Var olderAge = johnAge less then markAge;
Typeof Operator
console.log(olderAge);
Its a bollen variable os is a boolean variable
console.log(johnAge);
console.log(‘This is mark new age’);
Var x;
console.log(typeof 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.

Youtube Chanel Link :    / learnschoolonline  

for Facebook Video Link
https://www.facebook.com/Learn-School...

for google plus video link
https://plus.google.com/u/1/104161019...


Nesta página do site você pode assistir ao vídeo on-line Javascript Tutorial - Javascript Basic Operator | Arithmetic, Logical , typeof Javascript Operator duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Learn school online 19 Fevereiro 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 83 vezes e gostou 2 espectadores. Boa visualização!