JavaScript JavaScript Different Results? javascript sort different results,javascript regex different results

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

  1. custom background google chrome
  2. custom background google docs
  3. custom background google homepage
  4. custom background google
  5. custom background google slides
  6. custom background google form
  7. custom google background extension
  8. custom google background image
  9. custom google background maker
  10. custom google background firefox
  11. custom google background not working
  12. custom google background options
  13. custom google background safari
  14. 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 ...

  1. solving equations like terms calculator
  2. solving equations like terms
  3. solving equations like terms worksheet
  4. solving equations like bases
  5. solve line equations
  6. solve equations involving like terms calculator
  7. solve equations involving like terms
  8. solve equations combine like terms worksheet
  9. solve equations using like terms calculator
  10. solve equations involving like terms worksheet
  11. solve equations using like terms
  12. solve equations combine like terms with fractions
  13. solving equations combining like terms and distributive property worksheet
  14. solving equations with like terms worksheet answers
  15. solving equations combining like terms
  16. solving equations having like terms and parentheses
  17. solving equations combining like terms calculator
  18. solving equations combining like terms #2
  19. solving equations collecting like terms joke #19 answer key
  20. 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 ...