Interview Question's, difference between “==” and “===”?



Interview  Question's, difference between “==” and “===”?

Ans : “==” will checks only for equality i.e.,
This will compare  if the left and right values are equal
Eg: 1 == 1



"==="  This will compare the left and right values are equal, and compare if both the values are of the same variable type

Comments

Popular posts from this blog

Vendor autoload is not found. Please run 'composer install' under application root directory.

Uncaught TypeError: require.config is not a function CSS and Javascript files are not loading after Magento 2 installation

HTTP_RAW_POST_DATA is deprecated from PHP 5.6 onwards and will be removed in PHP 7.0