Closed ghost closed 12 years ago
console.log("there are", cats.length, "cats in this photo");
will output there are2cats in this photo.
there are2cats in this photo
Thanks, is this from the browser? In node it adds a space automatically.
Erm, it looks like the original code was correct. console.log("there are", cats.length, "cats in this photo"); will output there are 2 cats in this photo in any browser that supports console.log().
there are 2 cats in this photo
will output
there are2cats in this photo
.