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