{"id":4816,"date":"2015-05-26T16:15:56","date_gmt":"2015-05-26T13:15:56","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=4816"},"modified":"2015-05-21T06:07:13","modified_gmt":"2015-05-21T03:07:13","slug":"javascript-tutorial-part-5-statements","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/","title":{"rendered":"JavaScript Tutorial \u2013 Part 5: Statements"},"content":{"rendered":"<p>While <a href=\"http:\/\/en.wikipedia.org\/wiki\/Lambda_calculus\">theoretically we can do anything with functions and simple data structures<\/a>, but for some strange reasons programmers (unlike mathematicians) like their code to be readable and understandable by other human beings. So programming languages (and of course, JavaScript) have some build in statements to help us create more readable and easier to understand programs.<\/p>\n<p>We have the usual suspects: <code>if<\/code>, <code>for<\/code>, <code>while<\/code>, <code>switch<\/code>, and a new one that I\u2019ll save for the end. Let\u2019s have an example of their use, starting with loop statements:<\/p>\n<pre class=\" brush:js\">var min = 0, max = 5;\r\n\r\na = min;\r\nwhile (a &lt; max) {\r\n    console.info(a);\r\n    a++;\r\n}\r\n\r\na = min;\r\ndo {\r\n    console.info(a);\r\n    a++;\r\n} while (a &lt; max);\r\n\r\nfor (var a = min; a &lt; max; a++) {\r\n    console.info(a);\r\n}<\/pre>\n<p>The first loop statement is a <code>while<\/code> loop, whose formal syntax is:<\/p>\n<pre class=\" brush:js\">while (condition) \r\n    statement<\/pre>\n<p>A <code>while<\/code> is a simple form of loop where the <code>condition<\/code> is checked and then the <code>statement<\/code> is executed, repeating this until the <code>condition<\/code> is false. Pretty simple.<\/p>\n<p>The second loop statement is a <code>do...while<\/code> loop that is the same as the <code>while<\/code> loop but the <code>statement<\/code> of the loop is executed at least once and then the <code>condition<\/code> is checked.<\/p>\n<p>The last loop statement is a <code>for<\/code> loop, whose formal syntax is:<\/p>\n<pre class=\" brush:js\">for (initialization; condition; update)\r\n    statement<\/pre>\n<p>The execution starts by performing all the code in the <code>initialization<\/code>, then the <code>condition<\/code> is checked and if it is <code>true<\/code>, the <code>statement<\/code> is executed. When it finishes, the <code>update<\/code> is executed. The <code>condition<\/code> is checked again and the loop continues always executing <code>update<\/code> at the end) until <code>condition<\/code> is false. Note that you can execute many statements in <code>initialization<\/code> and <code>update<\/code> using a <code>,<\/code> (comma) operator between them, like this:<\/p>\n<pre class=\" brush:js\">for (var a = 2, b = 4; a &lt; b; a += 2, b += 1) {\r\n    console.info(\"a=\" + a + \", b=\" + b);\r\n}<\/pre>\n<p>Now let\u2019s see our conditional statements: <code>if<\/code> and <code>switch<\/code>:<\/p>\n<pre class=\" brush:js\">var a = 1;\r\nif(a === 2) {\r\n    console.info(\"WAT?\");\r\n} else {\r\n    console.info(\"Yea, that's what I expected\");\r\n}\r\n\r\nswitch (a) {\r\n    case 1:\r\n        console.info(\"Correct\");\r\n        break;\r\n    case 2:\r\n        console.info(\"WAT?\");\r\n        break;\r\n    default:\r\n        console.info(\"Defaults are always good\");\r\n}<\/pre>\n<p>Let\u2019s first take a look at the <code>if<\/code> statements, which is formally defined as:<\/p>\n<pre class=\" brush:js\">if (condition1)\r\n    statement1\r\n[else\r\n    statement2]<\/pre>\n<p>As the name says, if <code>condition1<\/code> is true, <code>statement1<\/code> is executed. We can optionally add <code>statement2<\/code> that is executed if the condition is false. To check more than one condition, we can chain the condition like this:<\/p>\n<pre class=\" brush:js\">if (condition1)\r\n    statement1\r\nelse if (condition2)\r\n    statement2\r\n[else\r\n    statement3]<\/pre>\n<p>The switch statement is a bit more complex, but sometimes creates more readable code when and there are limited possible values to a variable and limited things we want to do depending on these values. The formal syntax is:<\/p>\n<pre class=\" brush:js\">switch (expression) {\r\n    case value1:\r\n        [statement(s)1]\r\n        [break;]\r\n    case value2:\r\n        [statement(s)2]\r\n        [break;]\r\n....\r\n    [default:\r\n        [statement(s)n]]\r\n}<\/pre>\n<p>This is a bit more complex, so we\u2019ll take it step by step. First we have an expression that is evaluated and has a value (we\u2019ll call it <code>VALUE<\/code>). Execution starts top to bottom to find the first <code>case<\/code> value that is equal to <code>VALUE<\/code> and if one is found, the code below it is executed. If none is found, and there is a <code>default<\/code> case, the statements below this case are executed. The location of the <code>default<\/code> statement doesn\u2019t matter, so you can theoretically put it first, but this is not really what you usually want to do.<\/p>\n<p>One typical error when writing <code>switch<\/code> statements is to forget the <code>break<\/code> after the statements of each case, because unlike an if, when a case is matched, ALL of the code below this statement is executed! Not just the code until the next <code>case<\/code> statement, but ALL of the code below it, until the <code>switch<\/code> ends, or a <code>break<\/code> is found. This is good if you want to do the same thing for different <code>case<\/code> values, like this:<\/p>\n<pre class=\" brush:js\">switch (food) {\r\n    case \"apple\":\r\n    case \"orange\":\r\n    case \"banana\":\r\n        console.info(\"My Favorite\");\r\n    case \"melon\":\r\n        console.info(\"I Love it!\");\r\n        break;\r\n    case \"pineapple\":\r\n        console.info(\"I adore these!\");\r\n        break;\r\n    default:\r\n        console.info(\"Not sure, but I'll try\");\r\n}<\/pre>\n<p>But usually lack of a break is not what you really want.<\/p>\n<p>Going back to loops, their execution can be altered using <code>break<\/code> and <code>continue<\/code>. The <code>break<\/code> statement stops the execution of the loop and continues execution from the first statement after it. The <code>continue<\/code> statement stops the current iteration of the loop and jumps to check <code>condition<\/code> in a <code>while<\/code> loop or to execute <code>update<\/code> in a <code>for<\/code> loop:<\/p>\n<pre class=\" brush:js\">for (var a = 0; a &lt; 10; &lt;span class=\"hiddenGrammarError\" pre=\"\"&gt;a++) {\r\n    if&lt;\/span&gt; (a == 2)\r\n        continue; \/\/ number 2 will not be printed\r\n    if (a &gt; 5)\r\n        break; \/\/ loop will end at 6, printing until 5\r\n    console.info(a);\r\n}\r\n\r\n\/\/ poor man's for loop\r\nvar a = 0;\r\nwhile (true) {\r\n    if (a &gt; 5)\r\n        break;\r\n    console.info(a);\r\n    a++;\r\n}<\/pre>\n<p>Last but not least, JavaScript adds a new expression that can be used to iterate over all the attributes of an object. This is a very simple type of reflection that is useful many times. Formally, when <code>attr<\/code> is a variable name and <code>object<\/code> is a variable that contains an object reference, the statements is as follows:<\/p>\n<pre class=\" brush:js\">for (var attr in object) \r\n  statement<\/pre>\n<p>And now a simple example of how this works, a short way to print all attributes of an object and their values:<\/p>\n<pre class=\" brush:js\">var obj = { a: 1, b: 2 };\r\nfor (var attr in obj) {\r\n    console.info(attr+\"=\"+obj[attr]);\r\n}<\/pre>\n<p>I thought I would get to talk also about operators here, and about what equal means in JavaScript (same object? same values?) but this tutorial is getting long so I\u2019ll leave it for next time. Happy JavaScripting!<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"http:\/\/www.vainolo.com\/2015\/05\/17\/javascript-tutorial-part-5-statements\/\">JavaScript Tutorial \u2013 Part 5: Statements<\/a> from our <a href=\"http:\/\/www.webcodegeeks.com\/wcg\/\">WCG partner<\/a> Arieh Bibliowicz at the <a href=\"http:\/\/www.vainolo.com\/\">Vainolo&#8217;s Blog<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>While theoretically we can do anything with functions and simple data structures, but for some strange reasons programmers (unlike mathematicians) like their code to be readable and understandable by other human beings. So programming languages (and of course, JavaScript) have some build in statements to help us create more readable and easier to understand programs. &hellip;<\/p>\n","protected":false},"author":82,"featured_media":920,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-4816","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JavaScript Tutorial \u2013 Part 5: Statements - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"While theoretically we can do anything with functions and simple data structures, but for some strange reasons programmers (unlike mathematicians) like\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Tutorial \u2013 Part 5: Statements - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"While theoretically we can do anything with functions and simple data structures, but for some strange reasons programmers (unlike mathematicians) like\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2015-05-26T13:15:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Arieh Bibliowicz\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/vainolo\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Arieh Bibliowicz\" \/>\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:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/\"},\"author\":{\"name\":\"Arieh Bibliowicz\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/79ea955d90b979ca48a0fe70849038ec\"},\"headline\":\"JavaScript Tutorial \u2013 Part 5: Statements\",\"datePublished\":\"2015-05-26T13:15:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/\"},\"wordCount\":680,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\",\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/\",\"name\":\"JavaScript Tutorial \u2013 Part 5: Statements - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\",\"datePublished\":\"2015-05-26T13:15:56+00:00\",\"description\":\"While theoretically we can do anything with functions and simple data structures, but for some strange reasons programmers (unlike mathematicians) like\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript Tutorial \u2013 Part 5: Statements\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/79ea955d90b979ca48a0fe70849038ec\",\"name\":\"Arieh Bibliowicz\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e797704c245e29de3407affdab84f97eed02c8d1253d6ace5f1808426cd515e0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e797704c245e29de3407affdab84f97eed02c8d1253d6ace5f1808426cd515e0?s=96&d=mm&r=g\",\"caption\":\"Arieh Bibliowicz\"},\"description\":\"Arieh is a longtime programmer with more than 10 years of experience in enterprise grade software projects. He has worked as server-size programmer, team leader and system architect in a mission-critical high-availability systems. Arieh is currently a Program Manager (PM) in the Microsoft ILDC R&amp;D center for the Azure Active Directory Application Proxy, and also a PhD student at the Technion where he is developing a Visual Programming Language based on the graphical language of the Object-Process Methodology, using Java and the Eclipse platform.\",\"sameAs\":[\"http:\/\/www.vainolo.com\/\",\"https:\/\/www.linkedin.com\/pub\/arieh-bibliowicz\/3\/b11\/a57\",\"https:\/\/x.com\/https:\/\/twitter.com\/vainolo\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/arieh-bibliowicz\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript Tutorial \u2013 Part 5: Statements - Web Code Geeks - 2026","description":"While theoretically we can do anything with functions and simple data structures, but for some strange reasons programmers (unlike mathematicians) like","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:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Tutorial \u2013 Part 5: Statements - Web Code Geeks - 2026","og_description":"While theoretically we can do anything with functions and simple data structures, but for some strange reasons programmers (unlike mathematicians) like","og_url":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_published_time":"2015-05-26T13:15:56+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","type":"image\/jpeg"}],"author":"Arieh Bibliowicz","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/vainolo","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Arieh Bibliowicz","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/"},"author":{"name":"Arieh Bibliowicz","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/79ea955d90b979ca48a0fe70849038ec"},"headline":"JavaScript Tutorial \u2013 Part 5: Statements","datePublished":"2015-05-26T13:15:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/"},"wordCount":680,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/","url":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/","name":"JavaScript Tutorial \u2013 Part 5: Statements - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","datePublished":"2015-05-26T13:15:56+00:00","description":"While theoretically we can do anything with functions and simple data structures, but for some strange reasons programmers (unlike mathematicians) like","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-tutorial-part-5-statements\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"JavaScript","item":"https:\/\/www.webcodegeeks.com\/category\/javascript\/"},{"@type":"ListItem","position":3,"name":"JavaScript Tutorial \u2013 Part 5: Statements"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/79ea955d90b979ca48a0fe70849038ec","name":"Arieh Bibliowicz","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e797704c245e29de3407affdab84f97eed02c8d1253d6ace5f1808426cd515e0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e797704c245e29de3407affdab84f97eed02c8d1253d6ace5f1808426cd515e0?s=96&d=mm&r=g","caption":"Arieh Bibliowicz"},"description":"Arieh is a longtime programmer with more than 10 years of experience in enterprise grade software projects. He has worked as server-size programmer, team leader and system architect in a mission-critical high-availability systems. Arieh is currently a Program Manager (PM) in the Microsoft ILDC R&amp;D center for the Azure Active Directory Application Proxy, and also a PhD student at the Technion where he is developing a Visual Programming Language based on the graphical language of the Object-Process Methodology, using Java and the Eclipse platform.","sameAs":["http:\/\/www.vainolo.com\/","https:\/\/www.linkedin.com\/pub\/arieh-bibliowicz\/3\/b11\/a57","https:\/\/x.com\/https:\/\/twitter.com\/vainolo"],"url":"https:\/\/www.webcodegeeks.com\/author\/arieh-bibliowicz\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/4816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/82"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=4816"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/4816\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/920"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=4816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=4816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=4816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}