var first = 5; var second = 7; [first, second] = [second, first] console.log(first, second) //Output: 7,5