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 :: reapeat until in js 
Javascript :: get top n objects from list node js 
Javascript :: nuxt dev server does not work on local network 
Javascript :: loopback server.post response unauthorized 
Javascript :: opal find element 
Javascript :: add an element to the front of an input list in javascript 
Javascript :: how to push the get variables without page reloading in Jquery 
Javascript :: ryan dahl 
Javascript :: delete from array in angular 
Javascript :: date of birth validation in yup 
Javascript :: js reverse array of objects 
Javascript :: get keys objet javascript 
Javascript :: node dotenv 
Javascript :: remove the last element of an array javascript 
Javascript :: javascript uppercase first letter of each word 
Javascript :: expo android built is huge 
Javascript :: saturn range in angular display end date 
Javascript :: js get all object styles 
Javascript :: how to create hyperlinks discord.js 
Javascript :: jquery ajax google api 
Javascript :: javascript find object by property in array 
Javascript :: use set to remove duplicates in javascript 
Javascript :: javascript generate unique id 
Javascript :: javascript for border color 
Javascript :: multer rename file 
Javascript :: pandas to json 
Javascript :: set cookie javascript 
Javascript :: $.dialog after create focus 
Javascript :: how to get visitor ip address in javascript 
Javascript :: jquery :not class 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =