How to Swap two Array Elements in JavaScript

How to Swap two Array Elements in JavaScript