How to handle an dynamic array?
<p>I want to show up the names of the members of an array "path" in my console.</p>

<pre><code>console.log("start: ", path[0].name, "second: ", path[1].name, "third: ", path[2]name, ....)
</code></pre>

<p>But the problem is, that my array always changes it's size (clicking algorithm), that means sometimes it has the lenght 4 or sometimes 8 ect.
 How can i adjust the <code>console.log</code> code to this dynamic array?
Thanks so much!</p>