DEV Community

loading...

Discussion on: Bubble Sort In JavaScript

Collapse
micrajesh profile image
Mic • Edited

Didn't run/test yet but has the doubt in Concept 2 Code: what about arr[index + 1] when at the last item is coming in the iteration.. will it be array index out bounds ?

Forem Open with the Forem app