title: Don't understand piece of JavaScript code?
body: <pre><code>let s = &quot;12345&quot;
  let m = Array.from(s.slice(2), (_, i) =&gt; s.slice(i, i+3))
  console.log(m)
  </code></pre>
  <p>Output: <code>[&quot;123&quot;, &quot;234&quot;, &quot;345&quot;]</code></p>
  <p>I'm a beginner in JavaScript. Can someone explain how this code works step by step? Especially that part here: <code>(_, i) =&gt; s.slice(i, i+3)</code></p>