У нас вы можете посмотреть бесплатно == vs === in JavaScript | Which one is better? | Strict vs Loose Equality или скачать в максимальном доступном качестве, которое было загружено на ютуб. Для скачивания выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса savevideohd.ru
Generally, you have two options when performing equality checks in JavaScript - you're going to be using the Abstract Equality Comparison (==) or the Strict Equality Comparison (===). They are both similar and appear to achieve the same outcome, but they are actually very different under the surface. The == operator will automatically convert the types of the two values behind the scenes and only then will it make the actual comparison check. This is opposed to the === operator which takes data type into account, meaning a String will never be equal to a Number. In this video I go through these differences with simple examples and you should be able to fully understand the difference after watching this quick 4 minute video. My advice, go with the triple equals (===) :) For your reference, check this out: https://developer.mozilla.org/en-US/d... Follow me on Twitter @dcode! If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!