Skip to content

Instantly share code, notes, and snippets.

@nigilan
Created Jul 10, 2019
Embed
What would you like to do?
JS Bin // source https://jsbin.com/sosacep
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
let a = [11,22,33,44,55,66,77,88,99];
[a[0], a[1]] = [a[1], a[0]];
console.log(a);
</script>
<script id="jsbin-source-javascript" type="text/javascript">let a = [11,22,33,44,55,66,77,88,99];
[a[0], a[1]] = [a[1], a[0]];
console.log(a);</script></body>
</html>
let a = [11,22,33,44,55,66,77,88,99];
[a[0], a[1]] = [a[1], a[0]];
console.log(a);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment