<script>
var x = '123';
var y = '456';

y = [x, x = y][0];

alert(x);
alert(y);
  
</script>
Published in: JavaScript
Download

Related snippets