{"json_modified": "2015-04-26T06:44:11.300599", "slug": "Web/JavaScript/Referencia/Operadors/Bitwise_Operators", "tags": [], "locale": "ca", "title": "Operadors de bits", "translations": [{"title": "Bitwise operators", "url": "/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators", "tags": ["Operator", "JavaScript"], "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.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-11T09:46:38", "review_tags": []}, {"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": "2014-11-24T12:27:50", "review_tags": []}, {"title": "Op\u00e9rateurs binaires", "url": "/fr/docs/Web/JavaScript/Reference/Op%C3%A9rateurs/Op%C3%A9rateurs_binaires", "tags": ["R\u00e9f\u00e9rence", "Reference", "R\u00e9ference", "Operator", "JavaScript"], "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": "2015-04-11T13:43:52", "review_tags": []}, {"title": "\u30d3\u30c3\u30c8\u6f14\u7b97\u5b50", "url": "/ja/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators", "tags": [], "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\u300132 \u30d3\u30c3\u30c8\u306e\u96c6\u5408\uff080 \u3068 1\uff09\u3068\u3057\u3066 \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": "2015-04-15T05:45:50", "review_tags": []}, {"title": "Bitwise Operators", "url": "/ko/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators", "tags": [], "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\ub807\ub4ef 2\uc9c4\uc218\ub85c \ud45c\ud604\ud55c \ub4a4\uc5d0 \uacc4\uc0b0\uc744 \ud558\uc9c0\ub9cc, \ud45c\uc900 JavaScript \uac12\uc740 \ub9ac\ud134\uc2dc\ud0b5\ub2c8\ub2e4.", "localization_tags": [], "locale": "ko", "last_edit": "2014-07-06T09:18:18", "review_tags": []}, {"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": "2015-04-26T06:43:58", "label": "Operadors de bits", "localization_tags": [], "url": "/ca/docs/Web/JavaScript/Referencia/Operadors/Bitwise_Operators", "last_edit": "2015-03-09T06:26:21", "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.", "sections": [{"id": "Quick_Links", "title": "JavaScript Tutorials: JavaScript Guide Introduction Grammar and types Control flow and error handling Loops and iteration Functions Expressions and operators Numbers and dates Text formatting Regular expressions Indexed collections Keyed collections Working with objects Details of the object model Iterators and generators Meta programming Introductory JavaScript basics JavaScript technologies overview Introduction to Object Oriented JavaScript Intermediate A re-introduction to JavaScript JavaScript data structures Equality comparisons and sameness Closures Advanced Inheritance and the prototype chain Strict mode JavaScript typed arrays Memory Management Concurrency model and Event Loop References: Built-in objects Objectes Standard Array [Translate] ArrayBuffer [Translate] Boolean DataView [Translate] Date Error EvalError [Translate] Float32Array [Translate] Float64Array [Translate] Function [Translate] Generator [Translate] GeneratorFunction [Translate] Infinity Int16Array [Translate] Int32Array [Translate] Int8Array [Translate] InternalError [Translate] Intl [Translate] Intl.Collator [Translate] Intl.DateTimeFormat [Translate] Intl.NumberFormat [Translate] Iterator [Translate] JSON Map Math NaN Number Object [Translate] ParallelArray [Translate] Promise [Translate] Proxy [Translate] RangeError [Translate] ReferenceError [Translate] Reflect [Translate] RegExp [Translate] SIMD [Translate] Set [Translate] StopIteration [Translate] String Symbol [Translate] SyntaxError [Translate] TypeError [Translate] TypedArray [Translate] URIError [Translate] Uint16Array [Translate] Uint32Array [Translate] Uint8Array [Translate] Uint8ClampedArray [Translate] WeakMap [Translate] WeakSet [Translate] decodeURI() [Translate] decodeURIComponent() [Translate] encodeURI() [Translate] encodeURIComponent() [Translate] escape() [Translate] eval() [Translate] isFinite() [Translate] isNaN() [Translate] null parseFloat() [Translate] parseInt() [Translate] undefined unescape() [Translate] uneval() [Translate] Expressions & operators Expressions and operators Operadors aritm\u00e8tics Array comprehensions [Translate] Assignment operators Operadors de bits Operador Coma Comparison operators [Translate] Operador Condicional (ternari) Destructuring assignment [Translate] Expression closures [Translate] Generator comprehensions [Translate] Operador d'agrupament Legacy generator function expression [Translate] Operadors L\u00f2gics Object initializer [Translate] Operator precedence [Translate] Property accessors [Translate] Spread operator [Translate] class expression [Translate] Operador delete function expression [Translate] function* expression [Translate] in operator [Translate] instanceof [Translate] new operator [Translate] super this [Translate] typeof L'operador void yield yield* [Translate] Statements & declarations Statements and declarations Legacy generator function [Translate] block break [Translate] class [Translate] const [Translate] continue [Translate] debugger [Translate] do...while [Translate] Buida export [Translate] for for each...in [Translate] for...in [Translate] for...of function function* [Translate] if...else import [Translate] label [Translate] let [Translate] return switch [Translate] throw [Translate] try...catch [Translate] var [Translate] while with [Translate] Functions Functions [Translate] Arguments object [Translate] Arrow functions [Translate] Default parameters [Translate] Method definitions [Translate] Rest parameters [Translate] getter [Translate] setter [Translate] Classes Classes constructor extends [Translate] static Misc Lexical grammar JavaScript data structures Enumerability and ownership of properties Iteration protocols Strict mode Transitioning to strict mode Template strings Deprecated features New in JavaScript New in JavaScript [Translate] ECMAScript 5 support in Mozilla [Translate] ECMAScript 6 support in Mozilla [Translate] ECMAScript 7 support in Mozilla [Translate] Firefox JavaScript changelog [Translate] New in JavaScript 1.1 [Translate] New in JavaScript 1.2 [Translate] New in JavaScript 1.3 [Translate] New in JavaScript 1.4 [Translate] New in JavaScript 1.5 [Translate] New in JavaScript 1.6 [Translate] New in JavaScript 1.7 [Translate] New in JavaScript 1.8 [Translate] New in JavaScript 1.8.1 [Translate] New in JavaScript 1.8.5 [Translate] Documentation: Useful lists All pages index Methods index Properties index Pages tagged \"JavaScript\" Contribute JavaScript doc status The MDN project"}, {"id": "Summary", "title": "Resum"}, {"id": "Enters_de_32_bits_amb_signe", "title": "Enters de 32 bits amb signe"}, {"id": "Operadors_l.C3.B2gics_de_bits", "title": "Operadors l\u00f2gics de bits"}, {"id": ".26_(AND_binari)", "title": "& (AND binari)"}, {"id": ".7C_(OR_binari)", "title": "| (OR binari)"}, {"id": ".5E_(XOR_binari)", "title": "^ (XOR binari)"}, {"id": ".7E_(NOT_binari)", "title": "~ (NOT binari)"}, {"id": "Operadors_binaris_de_despla.C3.A7ament", "title": "Operadors binaris de despla\u00e7ament"}, {"id": "<<_(Despla.C3.A7ament_a_l'esquerra)", "title": "<< (Despla\u00e7ament a l'esquerra)"}, {"id": ">>_(Despla.C3.A7ament_a_la_dreta_preservant_el_signe)", "title": ">> (Despla\u00e7ament a la dreta preservant el signe)"}, {"id": ">>>_(Despla.C3.A7ament_a_la_dreta_omplint_amb_zeros)", "title": ">>> (Despla\u00e7ament a la dreta omplint amb zeros)"}, {"id": "Exemples", "title": "Exemples"}, {"id": "Exemple.3A_Marques_i_m.C3.A0scares_de_bits", "title": "Exemple: Marques i m\u00e0scares de bits"}, {"id": "Xuletes_per_conversions", "title": "Xuletes per conversions"}, {"id": "Automatitzaci.C3.B3_de_la_creaci.C3.B3_de_m.C3.A0scares", "title": "Automatitzaci\u00f3 de la creaci\u00f3 de m\u00e0scares"}, {"id": "Algorisme_invers.3A_un_array_de_booleans_a_partir_d'una_m.C3.A0scara", "title": "Algorisme invers: un array de booleans a partir d'una m\u00e0scara"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Compatibilitat_amb_navegadors", "title": "Compatibilitat amb navegadors"}, {"id": "See_also", "title": "Vegeu tamb\u00e9"}], "id": 135961, "review_tags": ["editorial"]}