logo

Crowdly

Browser

Add to Chrome

Context: Understanding reference behavior with objects. What will be the outp...

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

Context:

Understanding reference behavior with objects.

What will be the output of the following code?

let animal = {type: 'dog'};

let pet = animal;

animal.type = 'cat';

console.log(pet.type);

]]>
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