a> </h2>
<section aria-labelledby="toc_variable-declarations">
<p>A variable declaration, also called binding, is when you assign a value to a variable name.
An example of declaring a variable containing the number 42 is like so:</p>
<pre class="language-javascript line-numbers"><code class="javascript language-javascript"><span class="token keyword">var</span> myNumber <span class="token operator">=</span> <span class="token number">42</span><span class="token punctuation">;</span>
<span aria-hidden="true"