{"id":4389,"date":"2022-12-22T10:18:19","date_gmt":"2022-12-22T10:18:19","guid":{"rendered":"https:\/\/gyanipandit.com\/programming\/?p=4389"},"modified":"2022-12-22T10:22:58","modified_gmt":"2022-12-22T10:22:58","slug":"difference-between-double-equal-and-triple-equal-in-javascript","status":"publish","type":"post","link":"https:\/\/gyanipandit.com\/programming\/difference-between-double-equal-and-triple-equal-in-javascript\/","title":{"rendered":"Difference between == and === in JavaScript"},"content":{"rendered":"<p>In this video, we are comparing the two comparison operators in JavaScript, which are the == and === operators. These operators are used for checking the equalness of the operands. When we are using the == operator, we get true if the operands are equal. On the other hand, we use === for strict equalness, which means that we get true if and only if the operands are equal, and of the same type. At times, we might require to use these operators, but not knowing the difference between these operators can leave a sort of confusion in the comparisons.<\/p>\n\n\n<h2 class=\"has-text-align-center wp-block-heading\">Difference between == and === in JavaScript with Example<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"youtube-embed\" data-video_id=\"JuWpFnwJdPI\"><iframe loading=\"lazy\" title=\"Difference Between == and === In JavaScript\" width=\"696\" height=\"392\" src=\"https:\/\/www.youtube.com\/embed\/JuWpFnwJdPI?feature=oembed&#038;enablejsapi=1\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p>&nbsp;I hope you find this video &#8216;Difference between == and === in JavaScript&#8217; helpful for you<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this video, we are comparing the two comparison operators in JavaScript, which are the == and === operators. These operators are used for checking the equalness of the operands. When we are using the == operator, we get true if the operands are equal. On the other hand, we use === for strict equalness, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4391,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63],"tags":[64,14],"class_list":{"0":"post-4389","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-javascript","8":"tag-difference-between-and-in-javascript","9":"tag-javascript"},"_links":{"self":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/4389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/comments?post=4389"}],"version-history":[{"count":3,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/4389\/revisions"}],"predecessor-version":[{"id":4395,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/4389\/revisions\/4395"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/media\/4391"}],"wp:attachment":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/media?parent=4389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/categories?post=4389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/tags?post=4389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}