"using space " + don't work


#1

I have problem with space through the whole course in javascript..

this is code what i get from course

Animal.prototype.sayName = function() {
    console.log("Hi my name is " + this.name);
};
// and this will print "Hi my name isCaptain Cook" 
// there is no space between is and Captain Cook

I need use code like this:
   console.log("Hi my name is" +" "+     this.name); 
// with this I will get space between is and Captan Cook

Why is that?


#2

The space should work, it works for me