while printing the value stored inside p we have used a predefined function JSON.stringify…why that function is not used to print the value stored inside the object p2
Object oriented programming lecture 1
yes, you can do that, you can print p2 using JSON.stringify
it’s just that first statement with stringify prints the json string, while the next statement without it prints the json object
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.