{"json_modified": "2016-10-13T11:52:52.062048", "uuid": "1ee48223-91a7-4dd4-845c-3b2eee1d3e81", "title": "Comparison operators", "url": "/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators", "tags": ["Reference", "operator", "Operator", "JavaScript"], "translations": [{"uuid": "0cc9291a-ee44-46a1-b890-3b65928b3e44", "title": "Vergleichsoperatoren", "url": "/de/docs/Web/JavaScript/Reference/Operators/Vergleichsoperatoren", "tags": ["Vergleichsoperator", "JavaScript"], "summary": "JavaScript kennt sowohl den strikten als auch nicht-strikten\u00a0Vergleich. Ein strikter Vergleich (z.B. ===) ist nur wahr bei Operanden gleichen Typs. Der h\u00e4ufiger verwendete nicht-strikter\u00a0Vergleich (z.B. ==) wandelt die Operanden in den gleichen Typen um, bevor sie verglichen werden.\u00a0Bei relationalen\u00a0Vergleichsoperatoren\u00a0(z.B. <=) werden die Operanden vor dem Vergleich zuerst in elementare\u00a0Datentypen konvertiert und\u00a0dann in gleiche\u00a0Typen umgewandelt.", "localization_tags": [], "locale": "de", "last_edit": "2015-07-24T05:26:03", "review_tags": []}, {"uuid": "25bf4959-c118-40bf-8b54-da03292539a3", "title": "Operadores de Comparaci\u00f3n", "url": "/es/docs/Web/JavaScript/Referencia/Operadores/Comparison_Operators", "tags": [], "summary": "JavaScript has both strict and type\u2013converting comparisons. A strict comparison (e.g., ===) is only true if the operands are of the same type. The more commonly used abstract comparison (e.g. ==) converts the operands to the same Type before making the comparison. For relational abstract comparisons (e.g., <=), the operands are first converted to primitives, then to the same type, before comparison.", "localization_tags": ["inprogress"], "locale": "es", "last_edit": "2015-07-18T08:58:25", "review_tags": []}, {"uuid": "d8fca06a-28d3-4bfb-809e-8f2eb856b0fc", "title": "Op\u00e9rateurs de comparaison", "url": "/fr/docs/Web/JavaScript/Reference/Op%C3%A9rateurs/Op%C3%A9rateurs_de_comparaison", "tags": ["R\u00e9f\u00e9rence", "Op\u00e9rateur", "JavaScript"], "summary": "JavaScript poss\u00e8de des op\u00e9rateurs de comparaisons stricts et des op\u00e9rateurs de comparaisons qui effectuent des conversions. Une comparaison strict (ex. : ===) ne sera vraie que si les deux op\u00e9randes sont du m\u00eame type. La comparaison d'\u00e9galit\u00e9 faible (==) convertira les deux op\u00e9randes en un m\u00eame type avant d'effectuer la comparaison. Pour les comparaisons relationnelles (ex. : <=), les op\u00e9randes sont tout d'abord converties en valeurs, puis en valeurs du m\u00eame type, enfin la comparaison est effectu\u00e9e.", "localization_tags": [], "locale": "fr", "last_edit": "2016-10-13T11:52:40", "review_tags": []}, {"uuid": "638d658a-22bc-4b0f-9867-04a0e5f91b3b", "title": "\u6bd4\u8f03\u6f14\u7b97\u5b50", "url": "/ja/docs/Web/JavaScript/Reference/Operators/Comparison_Operators", "tags": ["operator", "Operator", "JavaScript"], "summary": "JavaScript \u306b\u306f\u3001\u53b3\u5bc6\u306b\u6bd4\u8f03\u3059\u308b\u65b9\u6cd5\u3068\u3001\u578b\u5909\u63db\u3057\u305f\u7d50\u679c\u3067\u6bd4\u8f03\u3059\u308b\u65b9\u6cd5\u306e 2 \u901a\u308a\u304c\u3042\u308a\u307e\u3059\u3002\u53b3\u5bc6\u306a\u6bd4\u8f03 (\u4f8b\u3048\u3070 ===) \u3067\u306f\u3001\u30aa\u30da\u30e9\u30f3\u30c9\u304c\u540c\u3058\u578b\u3067\u3042\u308b\u5834\u5408\u306b\u9650\u308a\u771f\u306b\u306a\u308a\u307e\u3059\u3002\u3088\u308a\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b\u62bd\u8c61\u7684\u306a\u6bd4\u8f03 (\u4f8b\u3048\u3070 ==) \u3067\u306f\u3001\u6bd4\u8f03\u3059\u308b\u524d\u306b\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u540c\u3058\u578b\u306b\u5909\u63db\u3057\u307e\u3059\u3002\u62bd\u8c61\u7684\u306a\u95a2\u4fc2\u6f14\u7b97\u5b50 (\u4f8b\u3048\u3070 <=) \u3067\u306f\u6bd4\u8f03\u3059\u308b\u524d\u306b\u3001\u59cb\u3081\u306b\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u306a\u5024\u306b\u5909\u63db\u3057\u3001\u3055\u3089\u306b\u540c\u3058\u578b\u306b\u5909\u63db\u3057\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2016-03-18T07:00:11", "review_tags": []}, {"uuid": "ee50b0b8-2895-43d3-b906-e76e4e774f5e", "title": "Comparison operators", "url": "/ko/docs/Web/JavaScript/Reference/Operators/Comparison_Operators", "tags": [], "summary": "\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\ub294 strict \ube44\uad50\ub098, type-converting \ube44\uad50\uac00 \uac00\ub2a5\ud558\ub2e4. strict \ube44\uad50 (e.g., ===) \ub294 \ud53c\uc5f0\uc0b0\uc790\ub4e4\uc774 \uac19\uc740 \ud0c0\uc785\uacfc \uac12\u00a0\uac00\uc9c8\ub54c\u00a0\u00a0\ucc38\uc774\ub2e4. \ub354 \uc77c\ubc18\uc801\uc73c\ub85c \uc0ac\uc6a9\ub418\ub294 abstract(type-converting)\ube44\uad50 (e.g. ==) \ub294 \ud53c\uc5f0\uc120\uc790\ub97c \ube44\uad50\ud558\uae30 \uc804 \uba3c\uc800 \uac19\uc740 \ud0c0\uc785\uc73c\ub85c \ubc14\uafbc\ub2e4. \uad00\uacc4 abstract \ube44\uad50 (e.g., <=), \uc5d0\uc11c\ub294,\ube44\uad50\ud558\uae30 \uc804\uc5d0 \ud53c\uc5f0\uc790\ub294 \uac00\uc7a5 \uba3c\uc800 primitive\ub4e4\ub85c \ubc14\uafb8\uace0, \uac19\uc740 \ud0c0\uc785\uc73c\ub85c \ubc14\uafbc\ub2e4.", "localization_tags": [], "locale": "ko", "last_edit": "2016-05-12T11:50:43", "review_tags": ["editorial"]}, {"uuid": "45908d26-a3b7-4e4c-9bcb-9cf6e46f0b05", "title": "Operatory por\u00f3wnania", "url": "/pl/docs/Web/JavaScript/Referencje/Operatory/Operatory_por%C3%B3wnania", "tags": ["Operator", "JavaScript"], "summary": "Operandy posiadaj\u0105 warto\u015b\u0107 liczbow\u0105 lub \u0142a\u0144cucha znak\u00f3w. \u0141a\u0144cuchy znak\u00f3w s\u0105 por\u00f3wnywane w oparciu o zasady pisowni, u\u017cywaj\u0105 warto\u015bci Unicode.", "localization_tags": ["inprogress"], "locale": "pl", "last_edit": "2015-04-25T03:05:19", "review_tags": []}, {"uuid": "f6833b73-2086-4b5f-a600-30a6566a1617", "title": "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f", "url": "/ru/docs/Web/JavaScript/Reference/Operators/%D0%9E%D0%BF%D0%B5%D1%80%D0%B0%D1%82%D0%BE%D1%80%D1%8B_%D1%81%D1%80%D0%B0%D0%B2%D0%BD%D0%B5%D0%BD%D0%B8%D1%8F", "tags": ["\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b", "JavaScript"], "summary": "\u0412 JavaScript \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u0441\u0442\u0440\u043e\u0433\u0438\u0435 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f, \u0442\u0430\u043a \u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0441 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0438\u043f\u0430 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u043e\u0432. \u0421\u0442\u0440\u043e\u0433\u0438\u0435 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f (\u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, ===) \u0438\u0441\u0442\u0438\u043d\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0442\u0438\u043f\u044b \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c\u0438 (\u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443: string-string, number-number). \u041e\u0434\u043d\u0430\u043a\u043e, \u0447\u0430\u0449\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0441 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0438\u043f\u043e\u0432 (\u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, ==). \u0422\u0430\u043a\u043e\u0439 \u0442\u0438\u043f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f, \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435, \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u044b \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0442\u0438\u043f\u0443. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0436\u0435, \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u043e\u0433\u043e \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f, \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u044b \u0441\u043f\u0435\u0440\u0432\u0430 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u044b, \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u0438\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0442\u0438\u043f\u0443, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f.", "localization_tags": [], "locale": "ru", "last_edit": "2016-03-07T06:47:27", "review_tags": []}, {"uuid": "7b406b35-386c-4129-9808-990125944555", "title": "\u6bd4\u8f83\u64cd\u4f5c\u7b26", "url": "/zh-CN/docs/Web/JavaScript/Reference/Operators/Comparison_Operators", "tags": ["\u6bd4\u8f83\u64cd\u4f5c\u7b26", "\u4e25\u683c\u6bd4\u8f83\u64cd\u4f5c\u7b26"], "summary": "JavaScript \u6709\u4e24\u79cd\u6bd4\u8f83\u65b9\u5f0f\uff1a\u4e25\u683c\u6bd4\u8f83\u8fd0\u7b97\u7b26\u548c\u8f6c\u6362\u7c7b\u578b\u6bd4\u8f83\u8fd0\u7b97\u7b26\u3002\u5bf9\u4e8e\u4e25\u683c\u6bd4\u8f83\u8fd0\u7b97\u7b26\uff08\u4e09\u4e2a =\uff09\u6765\u8bf4\uff0c\u4e3ature\u7684\u60c5\u51b5\u662f\u4ec5\u5f53\u4e24\u4e2a\u64cd\u4f5c\u6570\u62e5\u6709\u76f8\u540c\u7684\u7c7b\u578b\uff0c\u800c\u5bf9\u4e8e\u88ab\u5e7f\u6cdb\u4f7f\u7528\u7684\u6bd4\u8f83\u8fd0\u7b97\u7b26\uff08\u4e24\u4e2a\u00a0=\uff09\u6765\u8bf4\uff0c\u4f1a\u5728\u8fdb\u884c\u6bd4\u8f83\u4e4b\u524d\uff0c\u5c06\u4e24\u4e2a\u64cd\u4f5c\u6570\u8f6c\u6362\u6210\u76f8\u540c\u7684\u7c7b\u578b\u3002\u5bf9\u4e8e\u5173\u7cfb\u8fd0\u7b97\u7b26\uff08\u4e24\u4e2a==\uff09\u6765\u8bf4\uff0c\u4f1a\u5148\u5c06\u64cd\u4f5c\u6570\u8f6c\u4e3a\u539f\u59cb\u503c\uff0c\u5f85\u4ed6\u4eec\u7c7b\u578b\u76f8\u540c\uff0c\u518d\u8fdb\u884c\u6bd4\u8f83\u8fd0\u7b97\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2016-08-16T08:16:21", "review_tags": []}], "modified": "2016-10-12T13:23:11", "label": "Comparison operators", "localization_tags": [], "locale": "en-US", "id": 3245, "last_edit": "2016-10-12T13:23:01", "summary": "JavaScript has both strict and type\u2013converting comparisons. A strict comparison (e.g., ===) is only true if the operands are of the same type and the contents match. The more commonly-used abstract comparison (e.g. ==) converts the operands to the same type before making the comparison. For relational abstract comparisons (e.g., <=), the operands are first converted to primitives, then to the same type, before comparison.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Equality_operators", "title": "Equality operators"}, {"id": "Equality_()", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Examples", "title": "Examples"}, {"id": "Inequality_(!)", "title": null}, {"id": "Syntax_2", "title": "Syntax"}, {"id": "Examples_2", "title": "Examples"}, {"id": "Identity_strict_equality_()", "title": null}, {"id": "Syntax_3", "title": "Syntax"}, {"id": "Examples_3", "title": "Examples"}, {"id": "Non-identity_strict_inequality_(!)", "title": null}, {"id": "Syntax_4", "title": "Syntax"}, {"id": "Examples_4", "title": "Examples"}, {"id": "Relational_operators", "title": "Relational operators"}, {"id": "Greater_than_operator_(>)", "title": null}, {"id": "Syntax_5", "title": "Syntax"}, {"id": "Examples_5", "title": "Examples"}, {"id": "Greater_than_or_equal_operator_(>)", "title": null}, {"id": "Syntax_6", "title": "Syntax"}, {"id": "Examples_6", "title": "Examples"}, {"id": "Less_than_operator_(<)", "title": null}, {"id": "Syntax_7", "title": "Syntax"}, {"id": "Examples_7", "title": "Examples"}, {"id": "Less_than_or_equal_operator_(<)", "title": null}, {"id": "Syntax_8", "title": "Syntax"}, {"id": "Examples_8", "title": "Examples"}, {"id": "Using_the_Equality_Operators", "title": "Using the Equality Operators"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/JavaScript/Reference/Operators/Comparison_Operators", "review_tags": []}