Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Chris Shaffer
Chris Shaffer
12,025 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,410 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 :)

23 Answers

Michal Bednář
Michal Bednář
9,410 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!');
    }
}
Mia Filisch
Mia Filisch
15,378 Points

Michal, thanks for that! That's really nice of you :D copies code...

Kevin Gates
Kevin Gates
14,826 Points

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

Thank you!!

Thank you !

Nathan Beste
Nathan Beste
28,366 Points

Mid 2020 still not updated so thanks Michal!

Jonathan Tucker
seal-mask
.a{fill-rule:evenodd;}techdegree
Jonathan Tucker
Ubora | Web Development Techdegree Student 16,985 Points

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.

Thanks, Michal!

You the best, Michal!

Two years and no fix? Dang.

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.

Thanks Michal!

Thanks Michal!

Thank you so much Michal!

Still no fix

Still not updated but thank you Michal!

Rob Kramers
Rob Kramers
12,732 Points

Still same problem but thanks Michal!

Thanks Mike!

Arash Seyedi
Arash Seyedi
7,484 Points

Thanks, Michal!

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

Romeo Kiss
Romeo Kiss
7,355 Points

With all due respect, but since Oct 2018 nobody from Teamtreehouse had the time to address this issue?!

Teamtreehouse need to update the workspace according to the video. Please do the needful.

Thanks, Anwar Montasir.