It reeks of efficiency in JavaScript programming to want to extract key-value pairs from objects and save them as variables. Take for example the following object:

Object named ‘robot’.

If we wanted to extract the functionality property as a variable, we could using the following code:

Odolofin David

A Backend (NodeJS Stack) Enthusiast.

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