{"json_modified": "2015-04-25T16:19:03.167044", "slug": "Web/JavaScript/Reference/Operators/Operadores_Logicos", "tags": [], "locale": "pt-BR", "title": "Operadores L\u00f3gicos", "translations": [{"title": "\u8ad6\u7406\u6f14\u7b97\u5b50", "url": "/ja/docs/Web/JavaScript/Reference/Operators/Logical_Operators", "tags": [], "summary": "\u8ad6\u7406\u6f14\u7b97\u5b50 (Logical operators) \u306f\u3001\u57fa\u672c\u7684\u306b\u771f\u507d\uff08\u8ad6\u7406\uff09\u5024\u3068\u3068\u3082\u306b\u7528\u3044\u3089\u308c\u307e\u3059\u3002\u305d\u306e\u3068\u304d\u306f\u3001\u771f\u507d\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u3001&& \u304a\u3088\u3073 || \u6f14\u7b97\u5b50\u306f\u3001\u5b9f\u969b\u306b\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u6f14\u7b97\u5bfe\u8c61\u306e\u4e00\u65b9\u3092\u8fd4\u3057\u307e\u3059\u3002\u3067\u3059\u304b\u3089\u3001\u305d\u308c\u3089\u306e\u6f14\u7b97\u5b50\u304c\u3001\u771f\u507d\u5024\u3067\u306f\u306a\u3044\u5024\u3068\u3068\u3082\u306b\u7528\u3044\u3089\u308c\u305f\u5834\u5408\u3001\u771f\u507d\u5024\u3067\u306f\u306a\u3044\u5024\u3092\u8fd4\u3059\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2015-04-15T07:57:54", "review_tags": []}, {"title": "Logical Operators", "url": "/en-US/docs/Web/JavaScript/Reference/Operators/Logical_Operators", "tags": ["Operator", "JavaScript"], "summary": "Logical operators are typically used with Boolean (logical) values. When they are, they return a Boolean value. However, the && and || operators actually return the value of one of the specified operands, so if these operators are used with non-Boolean values, they may return a non-Boolean value.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-11T10:07:43", "review_tags": []}, {"title": "Op\u00e9rateurs logiques", "url": "/fr/docs/Web/JavaScript/Reference/Op%C3%A9rateurs/Op%C3%A9rateurs_logiques", "tags": ["R\u00e9f\u00e9rence", "Reference", "R\u00e9ference", "Operator", "JavaScript"], "summary": "Les op\u00e9rateurs logiques sont typiquement utilis\u00e9s avec des valeurs bool\u00e9ennes (logiques)\u00a0; lorsque c'est le cas, ils renvoient une valeur bool\u00e9enne \u00e9galement. Cependant, les op\u00e9rateurs && et || renvoient en r\u00e9alit\u00e9 la valeur d'un des op\u00e9randes sp\u00e9cifi\u00e9s. Si ces op\u00e9rateurs sont utilis\u00e9s avec des valeurs non bool\u00e9ennes, ils peuvent donc \u00e9galement renvoyer une valeur non bool\u00e9enne.", "localization_tags": [], "locale": "fr", "last_edit": "2015-04-11T13:20:33", "review_tags": []}, {"title": "\u903b\u8f91\u8fd0\u7b97\u7b26", "url": "/zh-CN/docs/Web/JavaScript/Reference/Operators/Logical_Operators", "tags": [], "summary": "
\u903b\u8f91\u8fd0\u7b97\u7b26\u901a\u5e38\u7528\u4e8e\u5e03\u5c14\u578b\uff08\u903b\u8f91\uff09\u503c\uff1b\u8fd9\u79cd\u60c5\u51b5\uff0c\u5b83\u4eec\u8fd4\u56de\u4e00\u4e2a\u5e03\u5c14\u578b\u503c\u3002\u7136\u800c\uff0c&&\u548c||\u8fd0\u7b97\u7b26\u5b9e\u9645\u4e0a\u8fd4\u56de\u4e00\u4e2a\u6307\u5b9a\u64cd\u4f5c\u6570\u7684\u503c\uff0c\u56e0\u6b64\u8fd9\u4e9b\u8fd0\u7b97\u7b26\u4e5f\u7528\u4e8e\u975e\u5e03\u5c14\u578b\uff0c\u5b83\u4eec\u8fd4\u56de\u4e00\u4e2a\u975e\u5e03\u5c14\u578b\u503c\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-01-05T05:59:05", "review_tags": []}, {"title": "Operadors L\u00f2gics", "url": "/ca/docs/Web/JavaScript/Referencia/Operadors/Logical_Operators", "tags": [], "summary": "Els operadors l\u00f2gics s'utilitzen normalment amb valors Boolean (l\u00f2gics). En cas de serh-hi presents, retornen un valor boole\u00e0. Tot i aix\u00ed, els operadors && i || retornen el valor d'un dels operands especificats, aix\u00ed que si aquests operadors es fan servir amb valors no booleans, poden retornar un valor no boole\u00e0.", "localization_tags": [], "locale": "ca", "last_edit": "2015-03-09T06:26:23", "review_tags": []}], "modified": "2015-04-25T16:19:00", "label": "Operadores L\u00f3gicos", "localization_tags": ["inprogress"], "url": "/pt-BR/docs/Web/JavaScript/Reference/Operators/Operadores_Logicos", "last_edit": "2014-11-19T11:48:56", "summary": "Operadores l\u00f3gicos s\u00e3o tipicamente usados com valores Booleanos (l\u00f3gicos). Quando eles o s\u00e3o, retornam um valor booleano. Por\u00eam, os operadores && e || atualmente retornam o valor de um dos operandos especificos, ent\u00e3o seesses operadores s\u00e3ousados com valores n\u00e3o booleanos, eles podem retornar um valor n\u00e3o booleano.", "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 Objetos Globais Array ArrayBuffer Boolean [Translate] DataView [Translate] Date Error [Translate] EvalError [Translate] Float32Array [Translate] Float64Array [Translate] Function 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 [Translate] Math NaN Number Object ParallelArray [Translate] Promise Proxy [Translate] RangeError [Translate] ReferenceError [Translate] Reflect [Translate] RegExp SIMD [Translate] Set StopIteration [Translate] String Symbol SyntaxError [Translate] TypeError [Translate] TypedArray [Translate] URIError [Translate] Uint16Array [Translate] Uint32Array [Translate] Uint8Array [Translate] Uint8ClampedArray [Translate] WeakMap WeakSet [Translate] decodeURI() [Translate] decodeURIComponent() [Translate] encodeURI() [Translate] encodeURIComponent() [Translate] escape() [Translate] eval() isFinite() [Translate] isNaN() null parseFloat() [Translate] parseInt() undefined unescape() [Translate] uneval() [Translate] Expressions & operators Operators Arithmetic operators [Translate] Array comprehensions Assignment operators [Translate] Bitwise operators [Translate] Operador V\u00edrgula Comparison operators [Translate] Operador Condicional Tern\u00e1rio Destructuring assignment [Translate] Expression closures [Translate] Generator comprehensions [Translate] Operador de Agrupamento Legacy generator function expression [Translate] Operadores L\u00f3gicos Object initializer [Translate] Preced\u00eancia de Operadores Property accessors [Translate] Spread operator [Translate] class expression [Translate] delete operator [Translate] function expression [Translate] function* expression [Translate] in operator [Translate] instanceof new operator [Translate] super [Translate] this [Translate] typeof void operator [Translate] yield [Translate] yield* [Translate] Statements & declarations Statements Legacy generator function [Translate] block [Translate] break class [Translate] const continue [Translate] debugger [Translate] do...while empty [Translate] export [Translate] for [Translate] for each...in [Translate] for...in [Translate] for...of [Translate] function [Translate] function* if...else [Translate] import [Translate] label (Etiqueta) let return [Translate] switch throw [Translate] try...catch var while [Translate] with [Translate] Functions Functions Arguments object [Translate] Arrow functions Default parameters [Translate] Method definitions [Translate] Rest parameters [Translate] getter [Translate] setter [Translate] Classes Classes [Translate] constructor [Translate] extends [Translate] static [Translate] 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] Suporte ao ECMAScript 6 na Mozilla 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": "Summary"}, {"id": "Description", "title": "Description"}, {"id": "Short-Circuit_Evaluation", "title": "Short-Circuit Evaluation"}, {"id": "Logical_AND_.28&&.29", "title": "Logical AND ( && )"}, {"id": "Logical_OR_(.7C.7C)", "title": "Logical OR ( || )"}, {"id": "Logical_NOT_.28.21.29", "title": "Logical NOT ( ! )"}, {"id": "Conversion_rules", "title": "Conversion rules"}, {"id": "Converting_AND_to_OR", "title": "Converting AND to OR"}, {"id": "Converting_OR_to_AND", "title": "Converting OR to AND"}, {"id": "Removing_nested_parentheses", "title": "Removing nested parentheses"}, {"id": "Removing_nested_AND", "title": "Removing nested AND"}, {"id": "Removing_nested_OR", "title": "Removing nested OR"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "JavaScript_1.0_and_1.1", "title": "Backward compatibility: Behavior in JavaScript 1.0 and 1.1"}, {"id": "See_also", "title": "See also"}], "id": 125871, "review_tags": []}