let objj = { userfirstname: "jigar", userlastname: "kajiwala" } const {userfirstname: un} = objj; const {userlastname} = objj console.log(un); //jigar console.log(userlastname); //kajiwala
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter