Photo by Brett Jordan on UnsplashJavaScript: Swapping of 2 variables without using temp variable and arithmetic operationsHari Krishna Anem·Jan 15, 2022·1 min readTable of contentsNo headings in the article.let a = 1; let b = 3; [a, b] = [b, a]; console.log(a, b); Output: 3 1 Execute above code here swaptwo variables Share this