Destructuring in JavaScript isn’t just for objects. You can swap variables without a temp variable:
[a, b] = [b, a]; Clean and clever
#JavaScriptTricks
It's a technique that can be used to transform synchronous code into asynchronous code, and vice versa. CPS involves passing a "continuation" function as an argument to a function, which can be called once the main operation is complete. #JavaScriptTricks#100DaysOfCode#webdev