An objective review. help!


I need help.
What is wrong in my code?

var james = {
married: false

function Person(job, married) {
this.job = job;
this.married = married;

var gabby = new Person("student", true);

     Oops, try again. Make sure that the value of the job property and james 'programmer'


Hi try to refresh the page..



++++ 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


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

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


what is wrong in this code, im getting error like unexpected token in 19th lesson

function Animal(name, numLegs) { = name;
this.numLegs = numLegs;
Animal.prototype.sayName = function() {
console.log("Hi my name is " +;

// define a Penguin class
function Penguin(name) { = name;
this.numLegs = 2;
// set its prototype to be a new instance of Animal
Penguin.prototype = new Animal();
var Penguin = {
penguin = "pavitha";


Ho You ahoudl create a new penguin like that

var  penguin  = new Penguin("bere typer the name");

Instead of

var Penguin = {
penguin = "pavitha";


THis code is correct...try resetting your browser