JavaScript: Difference between revisions

Content deleted Content added
top: remove extra words that place an unnecessary restriction on the meaning of the sentence. These are core to web. Period.
swap using destructuring assignment
Line 319:
if (a < b) {
// swap variables
// t = b; b = a; a = t;
[a, b] = [b, a]; // swap using destructuring assignment (ES6)
b = a;
a = t;
}
while (b !== 0) {