+ 8
What does "==" mean??
55 Antworten
+ 11
If they are - it returns "true", else - returns "false"
+ 11
== equal operator(check for two values)
= assigning value to variable
+ 9
(2 == 2) - true
(2 == 3) - false
Also (2 == "2") - false
+ 7
2 == “2” is true in js. Also 2 === “2” is false because === compares the datatype as well.
https://www.sololearn.com/learn/JavaScript/1132/
+ 6
"==" it use for equal
"!=" it use for not equal
they are operator
+ 6
they are logical operarors in many languages
for comparing data
+ 6
In Javascript there is also a === operator which compares both the value and type of the 2 operands.
+ 6
In Pascal, there is no == operator. = is used to check for equality and := is used for assignment.
+ 5
Thats needed to check if two values are equal
+ 5
Thanks.....
+ 5
You should have done the tutorials.
+ 5
Comparison operator which means if the two value are same as equal the result is true.
+ 5
We use "==" in most programming languages as a comparison operator to test for equality between two things. (Say for example 2==4 or 'a'=='5'). Generally, tge return type is a Boolean value (True or False)
So 2==4 will return False meanwhile 3==3 will return True.
+ 5
Equal comparison operator
+ 4
'=' means equals to in math but, '==' means equals to in js. Understand?
+ 4
Equal.
+ 4
a=10 # a is assigned the value of 10, and per duck-typing the type integer print a # --> 10 print type(a) # --> int print a==10 # --> True print a==11 # --> False if a==10: # if the condition is True do something else: do something else
+ 4
In java it's used to compare primitive values and object refreneces.
+ 4
It means ‘equal to’ for example:
2 == 2 (2 is equal to 2)
5 == 2 + 3 (5 is equal to 2 + 3)