Content: Issue with "Test your skills: Object basics": …

Created on 27 Jan 2021  Â·  6Comments  Â·  Source: mdn/content

MDN URL: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Test_your_skills:_Object_basics

What information was incorrect, unhelpful, or incomplete?

The cat.greeting() is not live i.e. not printing it to console.

Specific section or headline?

tast 1 & task 3

What did you expect to see?

Literally I expected to see something. But nothing came up!

Did you test this? If so, how?

Yep, in my browser console. Just the JS. Works fine.
Also, Please make the live editor more friendly. It's often struck in to loops.

anyways - awesome work team. #ToOpenVerse


MDN Content page report details

Learn

All 6 comments

Dear @retr0c0de,
could you share the used Operating System (Windows, macOS, GNU/Linux, …) and browser with us?

Browser: Mozilla Firefox developer edition
OS: Windows 10 Pro 20H2

Hi @retr0c0de !

I just tried out the first object exercise, and the following code works fine:

let catName = cat.name;

cat.greeting();

cat.color = 'black';

The second line results in the "Meow!" greeting being printed to the console.

For exercise 3, ths following code works, including printing the greetings to the console:

let cat = {
  name : 'Bertie',
  breed : 'Cymric',
  color : 'white',
  greeting: function() {
    console.log(`Hello, said ${this.name} the ${this.breed}.`);
  }
}

let cat2 = {
  name : 'Lisa',
  breed : 'Persian',
  color : 'white',
  greeting: function() {
    console.log(`Hello, said ${this.name} the ${this.breed}.`);
  }
}

cat.greeting();
cat2.greeting();

But my firefox is updated. I'll retry and let you know.

@retr0c0de Since you closed the issue, can we conclude, that it worked for you now?

yeah. But it's still not printing on my machine. I tried re-installing my Firefox. But fine in chrome.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StephanieCunnane picture StephanieCunnane  Â·  4Comments

sideshowbarker picture sideshowbarker  Â·  4Comments

vinyldarkscratch picture vinyldarkscratch  Â·  4Comments

sanoodles picture sanoodles  Â·  3Comments

arturcarvalho picture arturcarvalho  Â·  5Comments