Google News
logo
CoffeeScript - Interview Questions
How can you use arrays to swap variables?
You can use CoffeeScript's destructuring assignment syntax to swap variables using the array. It allows exchanging two values without the use of a temporary variable.
Advertisement