Javascript: Array doesn't work : <p>I need some help from you guys!</p>

<p>This is my JS code:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>var myArray[2] = "Hi";</code></pre>
</div>
</div>
</p>

<p>It says: "SyntaxError: missing ; before statement".</p>

<p>I dont't see where the hell I forgot an ";" in the easiest code ever.</p>
