The logical OR ( || ) (logical disjunction) operator for a set of operands is true if and only if one or more of its operands is true. It is typically used with boolean (logical) values. When it is, it returns a Boolean value.
What are operands in JavaScript? An operand is the part of an instruction representing the data manipulated by the operator. For example, when you add two numbers, the numbers are the operand and "+" is the operator.
What are JavaScript functions? A JavaScript function is a block of code designed to perform a particular task. A JavaScript function is executed when "something" invokes it (calls it).
The if Statement - Use the if statement to specify a block of JavaScript code to be executed if a condition is true.
What does val mean in JavaScript? The val() method returns or sets the value attribute of the selected elements. When used to return value: This method returns the value of the value attribute of the FIRST matched element.
What is a return in JavaScript? The return statement is used to return a particular value from the function to the function caller. The function will stop executing when the return statement is called. The return statement should be the last statement in a function because the code after the return statement will be unreachable.
![](https://i.ytimg.com/vi/NcxGIqMU2y0/maxresdefault.jpg)