What is operands in JavaScript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is operands in JavaScript

Can any one explaine it clearly

7th Mar 2020, 1:48 AM
Dipanshu Sahu
3 Answers
+ 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.
7th Mar 2020, 2:19 AM
Avinesh
Avinesh - avatar
+ 2
Thanks I understand Avinesh
7th Mar 2020, 2:22 AM
Dipanshu Sahu
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");
7th Mar 2020, 2:58 AM
Gordon
Gordon - avatar