<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Variables on Coderrob</title><link>https://coderrob.com/tags/variables/</link><description>Recent content in Variables on Coderrob</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sat, 25 Apr 2026 10:00:00 -0500</lastBuildDate><atom:link href="https://coderrob.com/tags/variables/index.xml" rel="self" type="application/rss+xml"/><item><title>JavaScript Var, Let, and Const Explained</title><link>https://coderrob.com/posts/javascript-var-let-and-const-explained/</link><pubDate>Sat, 25 Apr 2026 10:00:00 -0500</pubDate><guid>https://coderrob.com/posts/javascript-var-let-and-const-explained/</guid><description>&lt;p&gt;Most JavaScript code starts with a simple act: you give a value a name. We call that a variable declaration.&lt;/p&gt;
&lt;p&gt;That sounds small, but the way you create that name affects how the rest of your code can use it. A variable might be available only inside a small &amp;ldquo;if&amp;rdquo; block, across an entire function, or in places you did not really mean to share it.&lt;/p&gt;
&lt;p&gt;That is why &lt;code&gt;var&lt;/code&gt;, &lt;code&gt;let&lt;/code&gt;, and &lt;code&gt;const&lt;/code&gt; are worth understanding before the code gets complicated.&lt;/p&gt;</description></item></channel></rss>