Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

== vs ===

var a = [1,2,3];
var b = [1,2,3];

var c = { x: 1, y: 2 };
var d = { x: 1, y: 2 };

var e = "text";
var f = "te" + "xt";

a == b            // false
a === b           // false

c == d            // false
c === d           // false

e == f            // true
e === f           // true

"abc" == new String("abc")    // true
"abc" === new String("abc")   // false
Comment

PREVIOUS NEXT
Code Example
Javascript :: array remove first element js 
Javascript :: adding debounce in autocomplete material ui 
Javascript :: Sum of Digits / Digital Root 
Javascript :: Adding User And Hashed Password In ExpressJS 
Javascript :: angular scroll to element horizontally 
Javascript :: filter in javascript 
Javascript :: stack example in javascript 
Javascript :: mometjs 
Javascript :: how to add id in jquery 
Javascript :: for i in range vue js 
Javascript :: use css child selector inside js 
Javascript :: how to push mutual array elements in an array nested loop javascript 
Javascript :: check if all values in array are zero javascript 
Javascript :: Setting axios base url dynamically 
Javascript :: javascript single thread 
Javascript :: multi-dimensional array js 
Javascript :: loop through async javascript -4 
Javascript :: math.max 
Javascript :: getdata from fetch api into variable 
Javascript :: math.round in javascript 
Javascript :: charcodeat javascript 
Javascript :: jQuery intellisence in VSCode 
Javascript :: javascript get clock time in auto counter up 
Javascript :: hostlistener 
Javascript :: jquery copy to clipboard 
Javascript :: how set type of string value to number in js 
Javascript :: how to pick date from datepicker in selenium 
Javascript :: mongodb insertmany 
Javascript :: Substring in Javascript using substr 
Javascript :: array.push multiple 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =