AtoB
What will be the output?let x = { a: { b : 1 } };let y = JSON.parse(JSON.stringify(x));y.a.b = 10;console.log(x.a.b);
2 years ago | [YT] | 1
@coding24335
1
2 years ago | 0
@atob1616
output is 1
@Real_Life126
Sir aap videos to achi batane hai but voice bhut hi Kam aati hai
2 years ago | 1
View 1 reply
AtoB
What will be the output?
let x = { a: { b : 1 } };
let y = JSON.parse(JSON.stringify(x));
y.a.b = 10;
console.log(x.a.b);
2 years ago | [YT] | 1