title: Dot product of two arrays in Javascript
body: <pre><code>const a = [1,2,3]
  const b = [1,0,1]
  
  const c = dotProduct(a,b) // will equal 4
  </code></pre>
  <p>What's an efficient way of implementing the dotProduct method without importing any new libraries?</p>