logo

Crowdly

Browser

Add to Chrome

Context: Object mutation through function parameter. What will the console ou...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Context:

Object mutation through function parameter.

What will the console output?

function change(obj) { obj.value = 10; }

const obj = {value: 5};

change(obj);

console.log(obj.value);

]]>
More questions like this

Want instant access to all verified answers on moodle.ncst.edu.bh?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome