{"json_modified": "2016-08-01T21:52:16.998552", "uuid": "336c2514-b94b-4e16-bbe6-1e40d9b38deb", "title": "Bitwise operators", "url": "/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators", "tags": ["Reference", "operator", "Operator", "JavaScript"], "translations": [{"uuid": "2787ce54-f8cd-4abf-9c34-996f1d3ddb5e", "title": "Operadors de bits", "url": "/ca/docs/Web/JavaScript/Referencia/Operadors/Bitwise_Operators", "tags": [], "summary": "Els operadors de bits tracten els seus operands com una seq\u00fc\u00e8ncia de 32 bits (uns i zeros), en comptes de operar-los com a nombres decimals, hexadecimals o octals. Per exemple, la representaci\u00f3 bin\u00e0ria del \u00e9s nombre decimal nou (9) 1001. Els operadors de bits treballen amb aquesta representaci\u00f3 bin\u00e0ria per\u00f2 el resultat que retorna l'operaci\u00f3 sempre \u00e9s un nombre standard de JavaScript.", "localization_tags": [], "locale": "ca", "last_edit": "2015-03-09T06:26:21", "review_tags": ["editorial"]}, {"uuid": "40294b2e-2415-4d4a-93ac-88fce56abe3c", "title": "Bitwise operators", "url": "/es/docs/Web/JavaScript/Referencia/Operadores/Bitwise_Operators", "tags": [], "summary": "Las operaciones binarias\u00a0tratan sus operandos como una secuencia de 32 bits\u00a0(unos y ceros) en lugar de numeros decimales, hexadecimales u\u00a0octales.\u00a0\u00a0Por ejemplo, el n\u00famero decimal nueve es\u00a01001 en su\u00a0representaci\u00f3n binaria. Los operadores a nivel de bit realizan las operaciones en esas representaciones binarias, pero los valores devueltos son los valores num\u00e9ricos est\u00e1ndar de JavaSctipt.", "localization_tags": ["inprogress"], "locale": "es", "last_edit": "2016-03-22T14:59:23", "review_tags": []}, {"uuid": "ee557bb7-d035-4d1c-9d1e-60ba6b71564c", "title": "Op\u00e9rateurs binaires", "url": "/fr/docs/Web/JavaScript/Reference/Op%C3%A9rateurs/Op%C3%A9rateurs_binaires", "tags": ["Reference", "Op\u00e9rateur", "R\u00e9f\u00e9rence", "operator", "JavaScript", "Operator"], "summary": "Les op\u00e9rateurs binaires traitent leurs op\u00e9randes comme des s\u00e9quences de 32 bits (des z\u00e9ros et des uns), plut\u00f4t que comme des nombres d\u00e9cimaux, hexad\u00e9cimaux ou octaux. Par exemple, le nombre d\u00e9cimal neuf a une repr\u00e9sentation binaire de 1001. Les op\u00e9rateurs binaires traitent de telles repr\u00e9sentations binaires, mais renvoient des valeurs num\u00e9riques JavaScript standards.", "localization_tags": [], "locale": "fr", "last_edit": "2016-07-01T02:11:49", "review_tags": []}, {"uuid": "ed12cd4e-3afb-46fd-a539-28444994a83c", "title": "\u30d3\u30c3\u30c8\u6f14\u7b97\u5b50", "url": "/ja/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators", "tags": ["Reference", "operator", "Operator", "JavaScript"], "summary": "\u30d3\u30c3\u30c8\u6f14\u7b97\u5b50\u3067\u306f\u305d\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092 10 \u9032\u6570\u3084 16 \u9032\u6570\u3084 8 \u9032\u6570\u306e\u6570\u5024
\u3067\u306f\u306a\u304f\u3001\uff080 \u3084 1 \u304c\uff0932 \u30d3\u30c3\u30c8\u3072\u3068\u7d9a\u304d\u306b\u306a\u3063\u305f\u3082\u306e\u6271\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u300110 \u9032\u6570\u306e 9 \u306e 2 \u9032\u8868\u73fe\u306f 1001 \u3067\u3059\u3002\u30d3\u30c3\u30c8\u6f14\u7b97\u5b50\u306f\u3053\u306e\u3088\u3046\u306b 2 \u9032\u8868\u73fe\u306b\u3057\u305f\u4e0a\u3067\u6f14\u7b97\u3092\u884c\u3044\u307e\u3059\u304c\u3001\u6a19\u6e96\u306e JavaScript \u306e\u6570\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2016-08-01T21:52:03", "review_tags": []}, {"uuid": "3af5e9c3-308b-4549-8e45-5d4280378e78", "title": "Bitwise Operators", "url": "/ko/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators", "tags": ["operator", "Operator", "JavaScript"], "summary": "\ube44\ud2b8 \uc5f0\uc0b0\uc790\ub294 \ud53c\uc5f0\uc0b0\uc790\ub97c 10\uc9c4\uc218\ub098 16\uc9c4\uc218\ub098 8\uc9c4\uc218\uc640 \uac19\uc740 \uc22b\uc790\uac00 \uc544\ub2c8\ub77c, 32\ube44\ud2b8(0\uacfc 1)\uc758 \uc9d1\ud569\uc73c\ub85c \ud45c\ud604\ud569\ub2c8\ub2e4. \uc608\ub97c\ub4e4\uc5b4, 10\uc9c4\uc218 9\uc758 2\uc9c4\uc218 \ud45c\uae30\ubc95\uc740 1001\uc785\ub2c8\ub2e4. \ube44\ud2b8 \uc5f0\uc0b0\uc790\ub294 \uc774\ub7ec\ud55c 2\uc9c4\uc218 \ud45c\uae30\ubc95\uc73c\ub85c \uc5f0\uc0b0\ud558\uc9c0\ub9cc, \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\uc5d0\uc11c\ub294 \ud45c\uc900 \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\uc758 \uc22b\uc790\uac12\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4.", "localization_tags": ["inprogress"], "locale": "ko", "last_edit": "2016-07-10T23:55:51", "review_tags": []}, {"uuid": "dee8198d-3295-4c30-930d-f63bb1702f59", "title": "\u0411\u0438\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438", "url": "/ru/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators", "tags": ["\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440", "JavaScript"], "summary": "\u0411\u0438\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430\u043c\u0438 \u043a\u0430\u043a \u0441 32-\u0445 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u043c\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u043d\u0443\u043b\u0435\u0439 \u0438 \u0435\u0434\u0438\u043d\u0438\u0446, \u0430 \u043d\u0435 \u043a\u0430\u043a \u0441 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u043c\u0438, \u0432\u043e\u0441\u044c\u043c\u0435\u0440\u0438\u0447\u043d\u044b\u043c\u0438 \u0438\u043b\u0438 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0438\u0440\u0438\u0447\u043d\u044b\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e 9 \u0432 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043a\u0430\u043a 1001. \u0411\u0438\u0442\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u044f\u0442 \u0441\u0432\u043e\u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0441 \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0447\u0438\u0441\u043b\u0430, \u043d\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u044f\u0437\u044b\u043a\u0430 JavaScript.", "localization_tags": ["inprogress"], "locale": "ru", "last_edit": "2016-05-18T01:34:14", "review_tags": ["editorial"]}, {"uuid": "0024ff15-3be2-4c31-93ba-03b278f4b329", "title": "\u6309\u4f4d\u64cd\u4f5c\u7b26", "url": "/zh-CN/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators", "tags": [], "summary": "\u6309\u4f4d\u64cd\u4f5c\u7b26\uff08Bitwise operators\uff09\u00a0\u5c06\u5176\u64cd\u4f5c\u6570\uff08operands\uff09\u5f53\u4f5c32\u4f4d\u7684\u6bd4\u7279\u5e8f\u5217\uff08\u75310\u548c1\u7ec4\u6210\uff09\uff0c\u800c\u4e0d\u662f\u5341\u8fdb\u5236\u3001\u5341\u516d\u8fdb\u5236\u6216\u516b\u8fdb\u5236\u6570\u503c\u3002\u4f8b\u5982\uff0c\u5341\u8fdb\u5236\u65709\uff0c\u7528\u4e8c\u8fdb\u5236\u8868\u793a\u5219\u4e3a1001\u3002\u6309\u4f4d\u64cd\u4f5c\u7b26\u64cd\u4f5c\u6570\u5b57\u7684\u4e8c\u8fdb\u5236\u5f62\u5f0f\uff0c\u4f46\u662f\u8fd4\u56de\u503c\u4f9d\u7136\u662f\u6807\u51c6\u7684JavaScript\u6570\u503c\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-02-27T00:43:03", "review_tags": []}], "modified": "2016-06-16T19:39:55", "label": "Bitwise operators", "localization_tags": [], "locale": "en-US", "id": 1025, "last_edit": "2016-04-17T03:10:12", "summary": "Bitwise operators treat their operands as a sequence of 32 bits (zeroes and ones), rather than as decimal, hexadecimal, or octal numbers
. For example, the decimal number nine has a binary representation of 1001. Bitwise operators perform their operations on such binary representations, but they return standard JavaScript numerical values.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Signed_32-bit_integers", "title": "Signed 32-bit integers"}, {"id": "Bitwise_logical_operators", "title": "Bitwise logical operators"}, {"id": "(Bitwise_AND)", "title": null}, {"id": "(Bitwise_OR)", "title": null}, {"id": "(Bitwise_XOR)", "title": null}, {"id": "(Bitwise_NOT)", "title": null}, {"id": "Bitwise_shift_operators", "title": "Bitwise shift operators"}, {"id": "<<_(Left_shift)", "title": null}, {"id": ">>_(Sign-propagating_right_shift)", "title": null}, {"id": ">>>_(Zero-fill_right_shift)", "title": null}, {"id": "Examples", "title": "Examples"}, {"id": "Flags_and_bitmasks", "title": "Flags and bitmasks"}, {"id": "Conversion_snippets", "title": "Conversion snippets"}, {"id": "Automatize_the_creation_of_a_mask", "title": "Automatize the creation of a mask"}, {"id": "Reverse_algorithm_an_array_of_booleans_from_a_mask", "title": "Reverse algorithm: an array of booleans from a mask"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/JavaScript/Reference/Operators/Bitwise_Operators", "review_tags": []}