Hello Mate,
Let's discuss problem statement.
We have to create a object by reference and then convert it reference by value.
let a = {
name : "KK"
}
console.log(a);
// let b = a; // Object by reference
let b = Object.create(a); // Object by value
b.name = "PP";
console.log(a, b);
On this page of the site you can watch the video online Object by reference vs Object by value with a duration of hours minute second in good quality, which was uploaded by the user Coders Point 03 January 2023, share the link with friends and acquaintances, this video has already been watched 234 times on youtube and it was liked by 10 viewers. Enjoy your viewing!