用“===”就行了
function identity(val1, val2) {   
 if(val1===val2){  
 return true  
 }else{       
 return false
        }
    }
}