How to swap data in JavaScript

 [s[l], s[r]] = [s[r], s[l]];

Comments

Popular posts from this blog

Check MySQL query history from command line