Skip to content

Instantly share code, notes, and snippets.

@ysm-dev
Created August 3, 2019 15:20
Show Gist options
  • Select an option

  • Save ysm-dev/51b1b991f9e04eae6bc0a11ef7ead3b4 to your computer and use it in GitHub Desktop.

Select an option

Save ysm-dev/51b1b991f9e04eae6bc0a11ef7ead3b4 to your computer and use it in GitHub Desktop.
Markdium-๐Ÿ’ป ํ”„๋ก ํŠธ์—”๋“œ ๋ฉด์ ‘ ์งˆ๋ฌธ - JS #4
// ๋ณ€์ˆ˜ ๊ตํ™˜
let a = 1
let b = 3
;[a, b] = [b, a]
console.log(a) // 3
console.log(b) // 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment