Destructuring Assignment

let x = 7, y = 10
[x,y] = [y,x]

--

--

--

SE. NYC.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Vodcast | Pink Cloud 9 Vodcast https://bit.ly/3ckNwjt

$inbank1.png

Diving Into: ReactJS — Part 4 (State)

Vue Dev Tools For iFrame

Argparse Tutorial

Minimum Express, The Basics of Express

Var vs Let vs Const in javascript

Adding Advanced TomTom API Features to a Modern React App

May LeetCoding Challenge — Day 2

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jacob Kenny

Jacob Kenny

SE. NYC.

More from Medium

What is React?

What is React?

Create Multiple env’s for your React application.

React & Routing