or at index length - 1. To get the length of an array, use
the <code class="mendoza-code">(length x)</code> function.
</p>
<h2>Creating Arrays
</h2>
<p>There are many ways to create arrays in Janet, but the easiest is
the array literal.
</p>
<pre class="mendoza-codeblock"><code data-language="janet">(<span class="mdzsyn-coresym">def</span> <span class="mdzsyn-symbol">my-array</span> @[<span class="mdzsyn-number">1</span> <span class="mdzsyn-number">2</span> <span class="mdzsyn-number">3</span> <span class="