0
What is operands in JavaScript
Can any one explaine it clearly
3 ответов
+ 4
In simple terms-
An operand could be any variable or value that could be manipulated.
a + b --> here 'a' and 'b' are operands and '+' is the operator.
+ 2
Thanks I understand Avinesh
0
A unary operator has only one operand, for example :
let str1 = "4";
let num1 = + str1; // num1 => 4 (Number)
Ternary operator has three operands, for example :
let flag = false;
console.log(flag ? "I love SoloLearn" : "I love JavaScript");