marijnh / Eloquent-JavaScript

The sources for the Eloquent JavaScript book
https://eloquentjavascript.net
3.01k stars 795 forks source link

Chapter 4 Exercises, A List #350

Closed kardmeister closed 6 years ago

kardmeister commented 6 years ago

"[nth] returns the element at the given position in the list"

do positions in a list start with 1 as the first element or 0, like arrays? i can see that this is implicit in the given call to nth in the exercise but it could be specified in the instructions--for those of us who don't like to assume ;)

thanks.

marijnh commented 6 years ago

Good point. Patch 9a44eb8 tries to clarify this.