<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Stephenio Abbott on Medium]]></title>
        <description><![CDATA[Stories by Stephenio Abbott on Medium]]></description>
        <link>https://medium.com/@stephonpro?source=rss-9cc142c21031------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*HGWl6f3Bfukk8HXextwaKw.jpeg</url>
            <title>Stories by Stephenio Abbott on Medium</title>
            <link>https://medium.com/@stephonpro?source=rss-9cc142c21031------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 16:15:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@stephonpro/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Statements, Expressions and Expression Statements in JavaScript.]]></title>
            <link>https://medium.com/@stephonpro/statements-expressions-and-expression-statements-in-javascript-7eb96c0e0b68?source=rss-9cc142c21031------2</link>
            <guid isPermaLink="false">https://medium.com/p/7eb96c0e0b68</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Stephenio Abbott]]></dc:creator>
            <pubDate>Mon, 16 Mar 2020 22:29:01 GMT</pubDate>
            <atom:updated>2020-03-16T22:29:01.113Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0gF14zepFeiJha8BStVgGw.jpeg" /></figure><p>So I recently dedicated myself to learning JavaScript after so many attempts, and one of the concepts that I’ve had some issues wrapping my head around is “Expression Statements”. I’m still in the beginning stages of my learning, but I&#39;m writing this article to help myself, and, with the intention of maybe helping someone that is having trouble understanding it. So here goes.</p><h3>Expressions</h3><p>An expression is a unit of code that the JavaScript interpreter can evaluate to produce a value. Lets look at an example</p><pre>x = 2 + 3</pre><ul><li>This entire expression is made up of multiple sub expressions.</li><li>“2” and “3” are literal value expressions. Meaning that they are expressions that evaluate to the numbers 2 and 3.</li><li>“2+3” is an arithmetic expression, which when evaluated produces the number 5.</li><li>The assignment operator “=” is then evaluated which stores the result of the arithmetic expression(5) to the variable “x”(and returns it. An operator always returns a value and the assignment operator is no different).</li><li>So the result of the entire expression when evaluated, is the value which was assigned to “x”(5).</li></ul><h3>Statements</h3><p>A statement is an instruction to do something or to make something happen. a command to perform an action. <strong>Statements are made up of one or more expressions.</strong></p><pre>let greeting = &#39;Hey &#39; + name;</pre><p>The instruction/command/statement above, is saying to create/declare a variable with name “greeting” and assign it the value of the string expression on the right side of the assignment operator(=).</p><blockquote>Expressions are evaluated to produce a value, but statements are executed to make something happen…</blockquote><h3>Expression Statements</h3><p>A general expression that stands alone is also called an expression statement.</p><p>“Wherever JavaScript expects a statement, you can also write an expression”. I’m sure you’ve read that somewhere before and it might not click right away.</p><pre>2+2;</pre><p>The above is an expression statement. You can write this as a statement anywhere in your code. It’s not particular useful because it won’t have an effect on the running program, but think about it. It still is an instruction/command to evaluate the expression “2+2”.</p><p>Let’s have a look at our example from the expression explanation above.</p><pre>x = 2 + 3;</pre><p>This would be a more meaningful expression statement. It’s a statement/instruction/command to evaluate the expression which would update the value of the variable “x”.</p><p>References:</p><p><strong>You Don’t Know JS: Up &amp; Going</strong> by Kyle Simpson</p><p><strong>JavaScript Pocket Reference </strong>by<strong> </strong>David Flanagan</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7eb96c0e0b68" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>