Deconstructing es6 to reverse an array

can you help me write a small demo to implement the example above

Mar.23,2021

x=1,y=2
[x,y]=[y,x]
console.log(x) //2
console.log(y) //1 

I didn't add a semicolon. No wonder I can't do it all the time

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3dbd6-2c3b4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3dbd6-2c3b4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?