Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

loose and strict equality

== "loose" equality, compares values. It uses implicit type conversion 
to Convert one of the 2 types to the other type, or converts both types.
	> i.e. 5 == '5' is True because '5' would be converted to a int, 
    like Number('5') for example
    
=== "strict" equality, compares type and values. This is used more often
than loose equality.

Note:
x == null checks if x is null AND undefined at the same time. using == does NOT check if x was both

Comment

PREVIOUS NEXT
Code Example
Javascript :: how to call url multiple times 
Javascript :: trigger many url calls JS 
Javascript :: apollo client with functional component 
Javascript :: get nearest to user location js 
Javascript :: apostrophe issue in javascript 
Javascript :: Sending e-mail using Mandrill API 
Javascript :: "send data with window.location.href and get" 
Javascript :: react native asyncstorage mergeItem 
Javascript :: gitignore jsconfig 
Javascript :: find longest even string in array javascript 
Javascript :: rnpm react-images-uploading 
Javascript :: array of function 
Javascript :: get index from for in loop javascript 
Javascript :: javascript activate file input 
Javascript :: Private slots are new and can be created via Instance private fields 
Javascript :: change class on resize window jquery 
Javascript :: write a program to print patter usign recursion in javascript 
Javascript :: function expession js 
Javascript :: javascript string to date format dd/mm/yyyy 
Javascript :: get all keys of nested object json data javascript 
Javascript :: Example of String.prototype.replaceAll in es12 
Javascript :: how to change sender name in nodemailer 
Javascript :: invert binary tree js 
Javascript :: fcus on element 
Javascript :: stiches js keyframes 
Javascript :: Parametro angulara con ruta y recarga de componente 
Javascript :: change candle color react highcharts 
Javascript :: browserslist 
Javascript :: react Mixed symbols 
Javascript :: return axios response from seperate file 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =