Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<script>
function getB(obj) {
debugger;
obj.b;
}
</script>
<script>
const obj = { a: { b: 2, c: 3 }, b: 2 };
debugger;
obj.b = 3;
obj.a.b = 3;
obj.a.b = 4;
console.log(obj.b);
obj.b = 4;
obj.b;
obj.b;
debugger;
getB(obj);
debugger;
obj.b;
</script>
<body>
Hello World!
</body>
</html>