There is === in jquery

I know an operator ===in PHP that implies not only equality of values, but also type matching, as well as

if (20 === "20") //false 

Is there something similar in javascript if I use jquery? Code examples can help too.

thanks

+3
source share
5 answers

Yes, the operator exists in javascript. jQuery is just a framework built with javascript, so all javascript syntax and operators still exist.

+19
source

Yes, this is part of the JavaScript language. ===and ==match, except that it ==will try to convert types until it ===does.

+10

JQuery - Javascript. "==" Javascript. , "===".

http://www.webreference.com/js/column26/stricteq.html

+4

JavaScript === php - .
jQuery, - jQuery - JavaScript. , JavaScript. .

+3

Net Tuts jeffrey way "24 JavaScript" :

" JavaScript : === | !== == | != , .

, jQuery.

see article here: 24 JavaScript Usage Guidelines

+2
source

Source: https://habr.com/ru/post/1720191/


All Articles