You are viewing a single comment's thread. Return to all comments →
JavaScript:
let end=a.length-1; let start=0; while(start<end) { [a[start],a[end]]=[a[end],a[start]]; end--; start++; } return a
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays - DS
You are viewing a single comment's thread. Return to all comments →
JavaScript: