Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Object-Oriented JavaScript Working with Classes in JavaScript When Object Literals Aren’t Enough

Chris Shaffer
Chris Shaffer
12,030 Points

pets.js is not updated - same Workspace

This video uses two additional objects which apparently should appear in pets.js but do not - I have the same workspace as the previous video with my same code.

Not a big deal, but I can't "Report Video" on this either so I thought I'd post it here.

Michal Bednář
Michal Bednář
9,415 Points

I agree, there is a workspace from the previous video, but not an actual workspace for the current video

Maybe Ashley Boucher should check this out :)

16 Answers

Michal Bednář
Michal Bednář
9,415 Points

At least what I could do until Team Treehouse updates current "bad" workspace, I prepared the code Ashley has there on the start so other student can just copy and paste it:

const ernie = {
    animal: 'dog',
    age: '1',
    breed: 'pug',
    bark: function(){
        console.log('Woof!');
    }
}

const vera = {
    animal: 'dog',
    age: 8,
    breed: 'Border Collie',
    bark: function(){
        console.log('Woof!');
    }
}

const scofield = {
    animal: 'dog',
    age: 6,
    breed: 'Doberman',
    bark: function(){
        console.log('Woof!');
    }

  }

const edel = {
    animal: 'dog',
    age: 7,
    breed: 'German Shorthairder Pointer',
    bark: function(){
        console.log('Woof!');
    }
}
Kevin Gates
Kevin Gates
15,053 Points

Michal Bednář <-- this is why we have nice things.

Thank you!!

Thank you !

Hello everyone. I discovered that when this situation occurs you will need to delete your workspace. Deleting the workspace then provides an updated version. It's super annoying, but remember Treehouse has hundreds of Workspaces that are constantly update.

Anwar Montasir
STAFF
Anwar Montasir
Treehouse Teacher

Thank you for posting the correct code Michal Bednář, and my apologies that it took us so long to make this correction. The correct workspace should be attached to this video now.

You the best, Michal!

Thanks Michal!

Thanks Michal!

Thank you so much Michal!

Thanks Michal!

Rob Kramers
Rob Kramers
12,732 Points

Still same problem but thanks Michal!

Thanks Mike!

Thanks, Michal!

I fixed the issue by deleting the workspace and launch a brand new one by clicking on the "Launch Workspace"

Thanks, Anwar Montasir.