I have a variable Non_performance
that contains the following information and I want to access only to remarks
so how can this be done??
Non_performance
= {“code”: 3, “codeName”: “BOB”, “remarks”: “LION”}
Answer
We can achieve it by object destructuring.
const { remarks } = Non_performance