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 trialAshley Tee
10,198 PointsI don't have the code for the other pets!
Ashley says that the code for the other pets will be in the pets.js file, but mine only has Ernie. Does everyone else have this problem, or is it just me.
4 Answers
Steven Parker
231,236 PointsThe "pets.js" file in the workspace contains "ernie", "vera", "scofield", and "edel". You may need to close and re-launch the workspace.
If that doesn't help, you may need to completely restart the workspace. Go to the Workspaces page and locate the one you are using. Click on the trashcan icon on the right side to delete the workspace, and confirm when you get the pop-up.
With the workspace deleted, you can go back to the course and "Launch Workspace" again. When it comes up, it should have all the files you started with in their initial states.
Kevin Gates
15,053 PointsHere's the values if you need them:
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!');
}
}
Jojo Menzies
14,085 PointsGreat! Had the same problem. It's fixed now. Thanks!
John Norris
21,145 PointsSame problem here. As Steven said, just had to delete the Workspace https://teamtreehouse.com/workspaces
Chapman Cheng
PHP Development Techdegree Graduate 46,936 PointsChapman Cheng
PHP Development Techdegree Graduate 46,936 PointsThanks for that