Asked • 02/12/20

How to remove a specific property from an object ?

I have a user object having the following properties:

let user = {

  name"john",

  pin45,

  gender"Male",

  updated"Yes",

  activetrue,

};


Now I want to remove pin completely from the object. So how will I do this in Javascript ?


1 Expert Answer

By:

Mohammad A. answered • 02/12/20

Senior Javascript professional with 11+ years of experience

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.