check equality numbers javascript

JavaScript
function isSameNum(num1, num2) {
	var num1
	var num2 
	if ( num1 === num2 )  
		return true;      
else      
   return false;   
}
Source

Also in JavaScript: