Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


What is Object Equality in Javascript?
Question Posted on 20 Oct 2021

Home >> JavaScript >> JavaScript Questions >> What is Object Equality in Javascript?




What is Object Equality in Javascript?
In javascript there are two purpose of Object Equality in Javascript.
(1)In first we used "==" to compare two variables with using its data type. Just like below will return true if we compare:-
"2"==2
Here we will not check its type but only the values.
(2)In second we used "===" to compare both datatype and values. Here below will return false:-
"2"==2
Here above will return false as one is string type and other is int type.
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
regular expression for credit card like VISA, MASTER, AMEX
How to remove item from dropdownlist in Javascript
Different Data Types in Javascript in 2015?
syntax to get dropdownlist text in javascript
The snippet that has to be used to check if “a” is not equal to “null” is _________






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |