Did you look at the example code? Edit: I guess the example code isn’t really all that helpful for swapping the values.
Here is another example:
let firstName = 'Doe', lastName = 'John';
console.log(firstName); // Doe
console.log(lastName); // John
[firstName, lastName] = [lastName, firstName]
console.log(firstName); // John
console.log(lastName); // Doe