{"id":1757,"date":"2023-08-13T03:19:15","date_gmt":"2023-08-13T03:19:15","guid":{"rendered":"https:\/\/easycodingschool.com\/?p=1757"},"modified":"2023-08-13T03:19:15","modified_gmt":"2023-08-13T03:19:15","slug":"logical-operators-ternary-conditional-operator-bitwise-operators-type-operators","status":"publish","type":"post","link":"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/","title":{"rendered":"Logical Operators | Ternary (Conditional) Operator | Bitwise Operators | Type Operators"},"content":{"rendered":"<h2>Chapter-2:<\/h2>\n<p><strong>&#8220;Yesterday, Easy Coding School explored Arithmetic Operators, Assignment Operators, and Comparison Operators. We still have pending discussions on other types of operators.&#8221;<\/strong><\/p>\n<h4>Logical Operators:<\/h4>\n<p>Logical operators in JavaScript are used to combine or modify Boolean values (true or false). They allow you to perform logical operations and make decisions based on the results of these operations. JavaScript provides three main logical operators: AND (logical &amp;&amp;), OR\u00a0 (logical ||), and NOT (logical !). Here&#8217;s an explanation of each with examples:<\/p>\n<p>Also read more, <a href=\"https:\/\/easycodingschool.com\/blog\/javascript-operators-and-expressions\/\">Chapter -1: <span>Javascript Operators and Expressions<\/span><\/a><\/p>\n<p><strong>Logical AND (&amp;&amp;): <\/strong>The logical AND operator returns true if both operands are true, otherwise it returns false.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let isAdult = true;\r\nlet hasLicense = true;\r\n\r\nlet canDrive = isAdult &amp;&amp; hasLicense; \/\/ true (both conditions are true)<\/code><\/pre>\n<\/div>\n<p><strong>Logical OR (||): <\/strong>The logical OR operator returns true if at least one of the operands is true, otherwise it returns false.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let hasPermission = false;\r\nlet isAdmin = true;\r\n\r\nlet canAccess = hasPermission || isAdmin; \/\/ true (at least one condition is true)<\/code><\/pre>\n<\/div>\n<p><strong>Logical NOT (!): <\/strong>The logical NOT operator negates the value of its operand. It returns true if the operand is false, and false if the operand is true.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let isLoggedOut = true;\r\n\r\nlet isLoggedIn = !isLoggedOut; \/\/ false (negating the true value)<\/code><\/pre>\n<\/div>\n<p>Logical operators are often used to create more complex conditions by combining simpler conditions. They are particularly useful in conditional statements (if, else if, else) and loops to control the flow of your program based on various conditions. For example:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>if (isAdult &amp;&amp; hasLicense) {\r\nconsole.log(\"You can drive!\");\r\n} else {\r\nconsole.log(\"You cannot drive.\");\r\n}<\/code><\/pre>\n<\/div>\n<h4><strong>Ternary (Conditional) Operator:<\/strong><\/h4>\n<p>The ternary operator, also known as the conditional operator, is a concise way to write conditional expressions in JavaScript. It&#8217;s often used to make decisions and assign values based on a condition. The ternary operator takes the form condition ? expressionIfTrue : expressionIfFalse. Here&#8217;s an explanation with an example:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let age = 18;\r\nlet status = (age &gt;= 18) ? 'Adult' : 'Minor';<\/code><\/pre>\n<\/div>\n<p>In this example, the ternary operator checks if age is greater than or equal to 18. If the condition is true, the value &#8216;Adult&#8217; is assigned to the status variable. If the condition is false, the value &#8216;Minor&#8217; is assigned.<\/p>\n<p>The ternary operator is a shorthand way to write a simple if&#8230;else statement. The code above is equivalent to the following:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let age = 18;\r\nlet status;\r\n\r\nif (age &gt;= 18) {\r\nstatus = 'Adult';\r\n} else {\r\nstatus = 'Minor';\r\n}<\/code><\/pre>\n<\/div>\n<p>The ternary operator is especially useful when you want to make a quick decision between two values and assign one of them based on a condition. However, for more complex conditions or scenarios that involve multiple branches, using a regular if&#8230;else statement might be more readable.<\/p>\n<h4>Bitwise Operators:<\/h4>\n<p>Bitwise operators in JavaScript are used to perform operations on the individual bits of binary representations of integers. They are commonly used in low-level programming, data manipulation, and certain optimization tasks. JavaScript provides several bitwise operators that allow you to manipulate the binary representations of numbers. Here are the main bitwise operators along with explanations:<\/p>\n<p><strong>Bitwise AND (&amp;): <\/strong>Performs a bitwise AND operation on each pair of corresponding bits. If both bits are 1, the result is 1; otherwise, it&#8217;s 0.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let result = 5 &amp; 3; \/\/ Binary: 0101 &amp; 0011 = 0001 (1)<\/code><\/pre>\n<\/div>\n<p><strong>Bitwise OR (|): <\/strong>Performs a bitwise OR operation on each pair of corresponding bits. If at least one of the bits is 1, the result is 1; otherwise, it&#8217;s 0.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let result = 5 | 3; \/\/ Binary: 0101 | 0011 = 0111 (7)<\/code><\/pre>\n<\/div>\n<p><strong>Bitwise XOR (^): <\/strong>Performs a bitwise XOR (exclusive OR) operation on each pair of corresponding bits. If the bits are different (01 or 10), the result is 1; if the bits are the same (00 or 11), the result is 0.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let result = 5 ^ 3; \/\/ Binary: 0101 ^ 0011 = 0110 (6)<\/code><\/pre>\n<\/div>\n<p><strong>Bitwise NOT (~): <\/strong>Inverts the bits of its operand, changing 0 to 1 and vice versa. The result is a two&#8217;s complement representation.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let result = ~5; \/\/ Binary: ~0101 = 1010 (-6 in two's complement)<\/code><\/pre>\n<\/div>\n<p><strong>Left Shift (&lt;&lt;): <\/strong>Shifts the bits of the left operand to the left by the number of positions specified by the right operand. Filling bits are shifted out, and zeros are shifted in.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let result = 5 &lt;&lt; 1; \/\/ Binary: 0101 &lt;&lt; 1 = 1010 (10) Right Shift (&gt;&gt;):<\/code><\/pre>\n<\/div>\n<p>Shifts the bits of the left operand to the right by the number of positions specified by the right operand. Filling bits depend on the sign bit (arithmetic shift).<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let result = 5 &gt;&gt; 1; \/\/ Binary: 0101 &gt;&gt; 1 = 0010 (2)<\/code><\/pre>\n<\/div>\n<p><strong>Zero-fill Right Shift (&gt;&gt;&gt;):<\/strong><br \/>\nSimilar to the right shift operator, but it fills in zeros from the left instead of replicating the sign bit.<\/p>\n<div>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let result = -5 &gt;&gt;&gt; 1; \/\/ Binary: -101 &gt;&gt;&gt; 1 = 11111111111111111111111111111110 (4294967295)<\/code><\/pre>\n<\/div>\n<\/div>\n<div><\/div>\n<\/div>\n<h3>Type Operators:<\/h3>\n<p>Type operators in JavaScript are used to determine the data type of a value or to check whether an object is an instance of a particular class or constructor. There are two main type operators in JavaScript: typeof and instanceof. Here&#8217;s an explanation of each:<\/p>\n<p><strong>typeof Operator: <\/strong>The typeof operator is used to determine the data type of a value or expression. It returns a string indicating the data type of the operand. Common return values include &#8220;number&#8221;, &#8220;string&#8221;, &#8220;boolean&#8221;, &#8220;object&#8221;, &#8220;function&#8221;, and &#8220;undefined&#8221;.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>console.log(typeof 42); \/\/ \"number\"\r\nconsole.log(typeof 'Hello'); \/\/ \"string\"\r\nconsole.log(typeof true); \/\/ \"boolean\"\r\nconsole.log(typeof { prop: 1 }); \/\/ \"object\"\r\nconsole.log(typeof function() {}); \/\/ \"function\"\r\nconsole.log(typeof undefined); \/\/ \"undefined\"<\/code><\/pre>\n<\/div>\n<p><strong>instanceof Operator:<\/strong><br \/>\nThe instanceof operator is used to check if an object is an instance of a particular class or constructor. It returns true if the object is an instance of the specified class, and false otherwise.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>class Person {}\r\nlet person = new Person();\r\n\r\nconsole.log(person instanceof Person); \/\/ true\r\nconsole.log(person instanceof Object); \/\/ true (all objects are instances of Object)<\/code><\/pre>\n<\/div>\n<p>The typeof operator is commonly used to perform basic type checking, especially when dealing with primitive values. The instanceof operator is used to check object instances and inheritance relationships, making it useful when working with custom classes and prototypes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Logical Operators, Ternary (Conditional) Operator, Bitwise Operators, and Type Operators. Enhance your understanding of these fundamental concepts.<\/p>\n","protected":false},"author":1,"featured_media":1758,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[61,25,5],"tags":[89,64,62,91,93,92,90],"class_list":["post-1757","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-programming","category-technology","tag-corejavascipt","tag-easycodingschool","tag-javascript","tag-javascript-bitwise-operators","tag-javascript-logical-operators","tag-javascript-ternary-operator","tag-javascript-type-operators"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Logical Operators | Ternary (Conditional) Operator | Bitwise Operators | Type Operators - Easy Coding School<\/title>\n<meta name=\"description\" content=\"Logical Operators, Ternary (Conditional) Operator, Bitwise Operators, and Type Operators. Enhance your understanding of these fundamental concepts.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Logical Operators | Ternary (Conditional) Operator | Bitwise Operators | Type Operators - Easy Coding School\" \/>\n<meta property=\"og:description\" content=\"Logical Operators, Ternary (Conditional) Operator, Bitwise Operators, and Type Operators. Enhance your understanding of these fundamental concepts.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/\" \/>\n<meta property=\"og:site_name\" content=\"Easy Coding School\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-13T03:19:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Oprators-and-Expressions-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"660\" \/>\n\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"gauravkumarjha19@gmail.com\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"gauravkumarjha19@gmail.com\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/\"},\"author\":{\"name\":\"gauravkumarjha19@gmail.com\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b\"},\"headline\":\"Logical Operators | Ternary (Conditional) Operator | Bitwise Operators | Type Operators\",\"datePublished\":\"2023-08-13T03:19:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/\"},\"wordCount\":780,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Oprators-and-Expressions-2.jpg\",\"keywords\":[\"CoreJavascipt\",\"EasyCodingSchool\",\"JavaScript\",\"Javascript Bitwise Operators\",\"Javascript Logical Operators\",\"Javascript Ternary Operator\",\"Javascript Type Operators\"],\"articleSection\":[\"JavaScript\",\"Programming\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/\",\"url\":\"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/\",\"name\":\"Logical Operators | Ternary (Conditional) Operator | Bitwise Operators | Type Operators - Easy Coding School\",\"isPartOf\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Oprators-and-Expressions-2.jpg\",\"datePublished\":\"2023-08-13T03:19:15+00:00\",\"description\":\"Logical Operators, Ternary (Conditional) Operator, Bitwise Operators, and Type Operators. Enhance your understanding of these fundamental concepts.\",\"breadcrumb\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#primaryimage\",\"url\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Oprators-and-Expressions-2.jpg\",\"contentUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Oprators-and-Expressions-2.jpg\",\"width\":660,\"height\":350,\"caption\":\"Javascript Oprators and Expressions\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/easycodingschool.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Logical Operators | Ternary (Conditional) Operator | Bitwise Operators | Type Operators\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#website\",\"url\":\"https:\/\/easycodingschool.com\/blog\/\",\"name\":\"Easy Coding School\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/easycodingschool.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#organization\",\"name\":\"Easy Coding School\",\"url\":\"https:\/\/easycodingschool.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png\",\"contentUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png\",\"width\":310,\"height\":114,\"caption\":\"Easy Coding School \"},\"image\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b\",\"name\":\"gauravkumarjha19@gmail.com\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g\",\"caption\":\"gauravkumarjha19@gmail.com\"},\"sameAs\":[\"https:\/\/easycodingschool.com\/blog\"],\"url\":\"https:\/\/easycodingschool.com\/blog\/author\/gauravkumarjha19gmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Logical Operators | Ternary (Conditional) Operator | Bitwise Operators | Type Operators - Easy Coding School","description":"Logical Operators, Ternary (Conditional) Operator, Bitwise Operators, and Type Operators. Enhance your understanding of these fundamental concepts.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/","og_locale":"en_US","og_type":"article","og_title":"Logical Operators | Ternary (Conditional) Operator | Bitwise Operators | Type Operators - Easy Coding School","og_description":"Logical Operators, Ternary (Conditional) Operator, Bitwise Operators, and Type Operators. Enhance your understanding of these fundamental concepts.","og_url":"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/","og_site_name":"Easy Coding School","article_published_time":"2023-08-13T03:19:15+00:00","og_image":[{"width":660,"height":350,"url":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Oprators-and-Expressions-2.jpg","type":"image\/jpeg"}],"author":"gauravkumarjha19@gmail.com","twitter_card":"summary_large_image","twitter_misc":{"Written by":"gauravkumarjha19@gmail.com","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#article","isPartOf":{"@id":"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/"},"author":{"name":"gauravkumarjha19@gmail.com","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b"},"headline":"Logical Operators | Ternary (Conditional) Operator | Bitwise Operators | Type Operators","datePublished":"2023-08-13T03:19:15+00:00","mainEntityOfPage":{"@id":"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/"},"wordCount":780,"commentCount":0,"publisher":{"@id":"https:\/\/easycodingschool.com\/blog\/#organization"},"image":{"@id":"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#primaryimage"},"thumbnailUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Oprators-and-Expressions-2.jpg","keywords":["CoreJavascipt","EasyCodingSchool","JavaScript","Javascript Bitwise Operators","Javascript Logical Operators","Javascript Ternary Operator","Javascript Type Operators"],"articleSection":["JavaScript","Programming","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/","url":"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/","name":"Logical Operators | Ternary (Conditional) Operator | Bitwise Operators | Type Operators - Easy Coding School","isPartOf":{"@id":"https:\/\/easycodingschool.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#primaryimage"},"image":{"@id":"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#primaryimage"},"thumbnailUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Oprators-and-Expressions-2.jpg","datePublished":"2023-08-13T03:19:15+00:00","description":"Logical Operators, Ternary (Conditional) Operator, Bitwise Operators, and Type Operators. Enhance your understanding of these fundamental concepts.","breadcrumb":{"@id":"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#primaryimage","url":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Oprators-and-Expressions-2.jpg","contentUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Oprators-and-Expressions-2.jpg","width":660,"height":350,"caption":"Javascript Oprators and Expressions"},{"@type":"BreadcrumbList","@id":"https:\/\/easycodingschool.com\/blog\/logical-operators-ternary-conditional-operator-bitwise-operators-type-operators\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/easycodingschool.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Logical Operators | Ternary (Conditional) Operator | Bitwise Operators | Type Operators"}]},{"@type":"WebSite","@id":"https:\/\/easycodingschool.com\/blog\/#website","url":"https:\/\/easycodingschool.com\/blog\/","name":"Easy Coding School","description":"","publisher":{"@id":"https:\/\/easycodingschool.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/easycodingschool.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/easycodingschool.com\/blog\/#organization","name":"Easy Coding School","url":"https:\/\/easycodingschool.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png","contentUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png","width":310,"height":114,"caption":"Easy Coding School "},"image":{"@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b","name":"gauravkumarjha19@gmail.com","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g","caption":"gauravkumarjha19@gmail.com"},"sameAs":["https:\/\/easycodingschool.com\/blog"],"url":"https:\/\/easycodingschool.com\/blog\/author\/gauravkumarjha19gmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts\/1757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1757"}],"version-history":[{"count":1,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts\/1757\/revisions"}],"predecessor-version":[{"id":1759,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts\/1757\/revisions\/1759"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/media\/1758"}],"wp:attachment":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}