showing results for - "javascript equality"
Francisco
13 Oct 2016
118 === 18 // true
218 === 19 // false
3`18` == 18 // true
4`18` === 18 // false
5
6// == : loose equality operator (date type IS NOT relevant)
7// === : strict equality operator (date type IS relevant)
8
9// Note: the same applies for not equal
10`18` != 18 // false
11`18` !== 18 // true
Raphaëlle
06 Jul 2018
1function isSameNum(num1, num2) {
2	var num1
3	var num2 
4	if ( num1 === num2 )  
5		return true;      
6else      
7   return false;   
8}
queries leading to this page
equality javascript comparison in javascriptjavascript equalitycomparison operator javascriptcheck equality jsjavascript check number equalityfunction equality javascriptequality comparison operator in javascriptcheck equality javascriptstrign equality javascriptjavascript number comparison wrongstring equality in javascriptcompare javascriptcompare string equality javascriptjs equality checkcheck for equality javascriptstrict equalityhow to check for equality in javascriptjavascript equality comparisionloose equality javascriptjavascript strin equalityequality comparison javascriptjs referential equalityjavascript operator comparisonreferental equality in jsequality string jsequal comparison in jsjavascript equal valueidentical example in javascriptfunction to see if 2 integers are equal node jsjavascript test for equalityjavascript strict equalityjavascript keyword equalityequals javascriptjavascript number equality does not workjavascript equality check operatorloose inequality operatorcomparing in javascriptvar equalsequality check javascriptjs equality operatorsjavascript evaluate not equalcheck equality numbers javascriptjs comparison operatorjavascript string equality operatorcomparison javascriptequality in ajavascriptstring equality check in javascriptcomparing numbers if javascriptequality in jsstring equality jsjavascript equalityuchecking equality in javascriptequality javascript comparison with examplejavascript function equalityjs equalityequals function javascriptequality function in jsjavascript comparison operatorsjavascript 3d 3d vs 3d 3d 3d tableequality operator in javascriptequality operators javascriptjavascript check if values are equalhow to compare if same number jsjs string equalityhow to compare not a number in javascriptequal in javascript comparisonequality refer to in javascriptsame in javascriptequality jsreferential equality javascriptjavascript reference equalitycomapring address in javscript is false web3what is javascript equalityhow to check equality in javascriptjavascript string equalityjavascript equality operatorhow to check the equality of two numbers in javascriptstring equality javascriptjava script equalityjavascript comparison operatorjs string equality checkjavascript equality operatorstype equality jsjavascript set comparatorcompare value in javascriptequality check in javascriptequality operator in javascript exampleequality operators in javascriptwhat does equality refer to in javascript 3fjavascript equality string and numberreference equality in javascriptequal comparison to equal jscomparing numbers jswhen something is equal to a value in javascriptjs check equalequality in javascriptequality comparisons in javascriptexplain equality in javascriptjs reference equalityreference equality javascriptjavascript check string equalitywhat is referential equality in javascirptcheck equality in javascriptis equal method javascriptequality operator in jsequality operator javascriptjs function equalityjavascript equality operatoresequality checking in jswhen using equality operator in jscomparisonoperators and equality in jsjavascript equality