I'm a bit new with JavaScript (learning from CodeCademy), and I was wondering why this was happening:

```
function Person(job, married) {
this.job = job;
this.married = married;
// add a "speak" method to Person!
this.speak = function()
{
console.log("Hello!");
};
}
var user = new Person("Codecademy Student",false);
user.speak();
```

I run this code in the CodeCademy interpreter, but it returns an error that states the following:

Oops, try again. It looks like 'Hello!' wasn't logged to the console. Make sure that you properly defined the method and that you didn't change any of the provided code.

However, my friend referred me to an online JavaScript console

https://repl.it/ (which actually has support for a lot of other languages too!), and it shows me that it is printing "Hello!"

I'm not very clear on why the website is doing this, or why it is different from the online console. I'm pretty sure I've double checked on making sure the code was the exact same...

Answer:1

Here's a script I'm using. $(window).load(function() { $('#edifici, #artistici, #industriale, #fotovoltaico, #veterinaria, #architettonici').hide(); if (!!window.location.hash) { var hash = ...

Here's a script I'm using. $(window).load(function() { $('#edifici, #artistici, #industriale, #fotovoltaico, #veterinaria, #architettonici').hide(); if (!!window.location.hash) { var hash = ...

Google have introduced a stock chart to their results which highlights "After hours": I've had a hunt around the documentation and I can't see anything obvious that would suggest how to achieve a ...

Google have introduced a stock chart to their results which highlights "After hours": I've had a hunt around the documentation and I can't see anything obvious that would suggest how to achieve a ...

- custom background google chrome
- custom background google docs
- custom background google homepage
- custom background google
- custom background google slides
- custom background google form
- custom google background extension
- custom google background image
- custom google background maker
- custom google background firefox
- custom google background not working
- custom google background options
- custom google background safari
- flavr - custom google background

Any basic addition, subtraction, multiplication and division equation can be entered in the console or set to a variable: var solve = (3 + 7) + 2 * 8 / 2 // 18 and correctly solved. My code is not ...

Any basic addition, subtraction, multiplication and division equation can be entered in the console or set to a variable: var solve = (3 + 7) + 2 * 8 / 2 // 18 and correctly solved. My code is not ...

- solving equations like terms calculator
- solving equations like terms
- solving equations like terms worksheet
- solving equations like bases
- solve line equations
- solve equations involving like terms calculator
- solve equations involving like terms
- solve equations combine like terms worksheet
- solve equations using like terms calculator
- solve equations involving like terms worksheet
- solve equations using like terms
- solve equations combine like terms with fractions
- solving equations combining like terms and distributive property worksheet
- solving equations with like terms worksheet answers
- solving equations combining like terms
- solving equations having like terms and parentheses
- solving equations combining like terms calculator
- solving equations combining like terms #2
- solving equations collecting like terms joke #19 answer key
- solving equations with like terms and parentheses worksheets

EDIT : THe problem is that the site is sooo bad, and he is still in document.readyState = "interactive" so I don't have resize events :'( I'm working on a website (that I didn't made). I'm trying to ...

EDIT : THe problem is that the site is sooo bad, and he is still in document.readyState = "interactive" so I don't have resize events :'( I'm working on a website (that I didn't made). I'm trying to ...