JavaScript basic: Check whether 1 appears in first or last position of ...

JavaScript basic: Check whether 1 appears in first or last position of ...

More to explore

Based on this image's title: “JavaScript basic: Check whether 1 appears in first or last position of ...