filmov
tv
Explaining Logical Operators in JavaScript with examples | Interview Questions.

Показать описание
Explaining Logical Operators in JavaScript with examples | Interview Questions.
Code:
/*Logical operators:
Logical operators in javascript, unlike operators in other programming languages, do not return true or false. They always return one of the operands.
OR ( | | ) operator - If the first value is true, then the first value is returned. Otherwise, always the second value gets returned.
AND ( && ) operator - If both the values are true, always the second value is returned. If the first value is false then the first value is returned or if the second value is false then the second value is returned.*/
var x = 220;
var y = "Hello";
var z = undefined;
var a = 100
Next Steps :
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
Must Watch Playlists
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
#javascript
#interviewquestions
#javascriptinterviewquestions
Code:
/*Logical operators:
Logical operators in javascript, unlike operators in other programming languages, do not return true or false. They always return one of the operands.
OR ( | | ) operator - If the first value is true, then the first value is returned. Otherwise, always the second value gets returned.
AND ( && ) operator - If both the values are true, always the second value is returned. If the first value is false then the first value is returned or if the second value is false then the second value is returned.*/
var x = 220;
var y = "Hello";
var z = undefined;
var a = 100
Next Steps :
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
Must Watch Playlists
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
#javascript
#interviewquestions
#javascriptinterviewquestions