{"json_modified": "2016-03-18T07:00:20.817235", "slug": "Web/JavaScript/Reference/Operators/Comparison_Operators", "tags": ["operator", "Operator", "JavaScript"], "locale": "ja", "title": "\u6bd4\u8f03\u6f14\u7b97\u5b50", "translations": [{"title": "Comparison operators", "url": "/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators", "tags": ["operator", "Operator", "JavaScript"], "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": [], "locale": "en-US", "last_edit": "2015-11-03T10:35:36", "review_tags": []}, {"title": "Op\u00e9rateurs de comparaison", "url": "/fr/docs/Web/JavaScript/Reference/Op%C3%A9rateurs/Op%C3%A9rateurs_de_comparaison", "tags": ["Reference", "R\u00e9f\u00e9rence", "operator", "JavaScript", "Operator"], "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": "2015-11-03T16:03:50", "review_tags": []}, {"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": []}, {"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": "2015-05-07T03:30:40", "review_tags": []}, {"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": []}, {"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": []}, {"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": []}], "modified": "2016-03-18T07:00:18", "label": "\u6bd4\u8f03\u6f14\u7b97\u5b50", "localization_tags": [], "url": "/ja/docs/Web/JavaScript/Reference/Operators/Comparison_Operators", "last_edit": "2016-03-18T07:00:11", "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", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Equality_operators", "title": "\u7b49\u4fa1\u6f14\u7b97\u5b50"}, {"id": "Equality_()", "title": null}, {"id": "Syntax", "title": "\u69cb\u6587"}, {"id": "Examples", "title": "\u4f8b"}, {"id": "Inequality_(!)", "title": null}, {"id": "Syntax_2", "title": "\u69cb\u6587"}, {"id": "Examples_2", "title": "\u4f8b"}, {"id": "Identity_strict_equality_()", "title": null}, {"id": "Syntax_3", "title": "\u69cb\u6587"}, {"id": "Examples_3", "title": "\u4f8b"}, {"id": "Non-identity_strict_inequality_(!)", "title": null}, {"id": "Syntax_4", "title": "\u69cb\u6587"}, {"id": "Examples_4", "title": "\u4f8b"}, {"id": "Relational_operators", "title": "\u95a2\u4fc2\u6f14\u7b97\u5b50"}, {"id": "Greater_than_operator_(>)", "title": null}, {"id": "Syntax_5", "title": "\u69cb\u6587"}, {"id": "Examples_5", "title": "\u4f8b"}, {"id": "Greater_than_or_equal_operator_(>)", "title": null}, {"id": "Syntax_6", "title": "\u69cb\u6587"}, {"id": "Examples_6", "title": "\u4f8b"}, {"id": "Less_than_operator_(<)", "title": null}, {"id": "Syntax_7", "title": "\u69cb\u6587"}, {"id": "Examples_7", "title": "\u4f8b"}, {"id": "Less_than_or_equal_operator_(<)", "title": null}, {"id": "Syntax_8", "title": "\u69cb\u6587"}, {"id": "Examples_8", "title": "\u4f8b"}, {"id": "Using_the_Equality_Operators", "title": "\u7b49\u4fa1\u6f14\u7b97\u5b50\u3092\u4f7f\u3046"}, {"id": "Specifications", "title": "\u4ed5\u69d8"}, {"id": "Browser_compatibility", "title": "\u30d6\u30e9\u30a6\u30b6\u5b9f\u88c5\u72b6\u6cc1"}, {"id": "See_also", "title": "\u95a2\u9023\u60c5\u5831"}], "id": 986, "review_tags": []}