11. Putting it all together is bugged


#1



https://www.codecademy.com/courses/spencer-sandbox/1/6?curriculum_id=506324b3a7dffd00020bf661


The code works and passes but it does not mark it off as complete when arrive at the next page. The gear box continues to spin indefinitely. Objects I is at 96% complete because of this bug. How can I fix this?


// help us make snoopy using literal notation
// Remember snoopy is a "beagle" and is 10 years old.
var snoopy = {
    species: "beagle",
    age: 10
};

// help make buddy using constructor notation
// buddy is a "golden retriever" and is 5 years old
var buddy = new Object();
buddy.species = "golden retriever";
buddy.age = 5;


#2

@bigqueso,
Have you tried a reset-Browser

++++ reset of session *****************
As you are manipulating with objects
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).


#3

I just tried and it did not work. I have even test it in firefox and chrome, both have the same issue. once the next page loads its not allowing me to hit the blue save and submit code, it is also not showing 11. Putting it all together as complete.


#4

I have exactly the same problem (I've checked my code with a microscope...) and still refuses to validate.

I have the same code as you. Not sure what to do?


#5

There seems to definitely be a bug. It has been reported here.


#6

When you finish the exercise, if you go back into it and click save again it'll show the tick, I've had the same problem with every exercise :slight_smile:


#7

I wish that would solve it but I have already tried doing this. =(


#8

did you put a dot between NEW and OBJECT?


#9

nevermind_________________


#10

I'm having problems to validate too.

var snoopy = {
species:"Beagle",
age:10
};

// help make buddy using constructor notation
// buddy is a "golden retriever" and is 5 years old
var buddy = new Object();
buddy.species= "Golden Retriever";
buddy.age=5;

Oops, try again. Snoopy should have a property named 'species' that is set to 'beagle'


#11

@glausaes,

Try with

lowercase "beagle"

#12

Um Just keep trying it :slight_smile:


#13

Didn't work..........................................


#14

I believe I'm having the same problem. Has anyone found out a solution?

In case the problem is my code and not the bug, I will leave it here for fellow community members to analyse:

var snoopy = {
species = "beagle",
age: 10
};

var buddy = new Object();
buddy.species = "golden retriever";
buddy.age = 5;


#15

@hcaetano
You have a

SyntaxError: ':' expected in your literal Object definition


#16

thank you! i really did not see that. just thought everything worked with '='. :slight_smile:


#17

Its not a bug, i found the solution
use this

// help us make snoopy using literal notation
// Remember snoopy is a "beagle" and is 10 years old.
var snoopy = {
species : 'beagle',
age : 10,
};

// help make buddy using constructor notation
// buddy is a "golden retriever" and is 5 years old
var buddy = new Object();
buddy.species = "golden retriever";
buddy.age = 5;

The issue is that you have to put a comma to end the object in the literal notation.. use "species : beagle, instead of species : beagle;" and use "age : 10, instead of age : 10;" i hope you understand


#18

Its not a bug, i found the solution
use this

// help us make snoopy using literal notation
// Remember snoopy is a "beagle" and is 10 years old.
var snoopy = {
species : 'beagle',
age : 10,
};

// help make buddy using constructor notation
// buddy is a "golden retriever" and is 5 years old
var buddy = new Object();
buddy.species = "golden retriever";
buddy.age = 5;

The issue is that you have to put a comma to end the object in the literal notation.. use "species : beagle, instead of species : beagle;" and use "age : 10, instead of age : 10;" i hope you understand


#19

Its not a bug, i found the solution
use this

// help us make snoopy using literal notation
// Remember snoopy is a "beagle" and is 10 years old.
var snoopy = {
species : 'beagle',
age : 10,
};

// help make buddy using constructor notation
// buddy is a "golden retriever" and is 5 years old
var buddy = new Object();
buddy.species = "golden retriever";
buddy.age = 5;

The issue is that you have to put a comma to end the object in the
literal notation.. use "species : beagle, instead of species : beagle;"
and use "age : 10, instead of age : 10;" i hope you understand


#20

good answer, brader.

i'am missing this case with comma in after define properties

var snoopy = {
species : 'beagle',
age : 10,
};