const a = {};
a.name = "Trints tech";
In this program, we create an empty object using the object literal syntax. Then, we add a new property to a called name and assign it the string value "Trints tech" using dot notation.
When we log a to the console, we see that it now has a single property called name with the value "Trints tech".
When we log a.name to the console, we see that it logs the value of the name property, which is "Trints tech".
On this page of the site you can watch the video online Program 10 Const object mutation | JS Interview Questions | Object mutation with a duration of hours minute second in good quality, which was uploaded by the user Trinits Technologies 05 April 2023, share the link with friends and acquaintances, this video has already been watched 56 times on youtube and it was liked by 3 viewers. Enjoy your viewing!