marijnh / Eloquent-JavaScript

The sources for the Eloquent JavaScript book
https://eloquentjavascript.net
3.01k stars 795 forks source link

Missing a space in chapter 2. #349

Closed jayg414 closed 6 years ago

jayg414 commented 6 years ago

Under your explanation for the console.log function in chapter 2 you forgot the trailing space at the end of the string.

let x = 30; console.log("the value of x is", x); // → the value of x is 30

Should be:

let x = 30; console.log("the value of x is ", x); // → the value of x is 30

marijnh commented 6 years ago

console.log will add a space between its arguments. Try it.

jayg414 commented 6 years ago

Cool. Thanks :)

On Wed, Feb 21, 2018 at 2:54 AM, Marijn Haverbeke notifications@github.com wrote:

Closed #349 https://github.com/marijnh/Eloquent-JavaScript/issues/349.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/marijnh/Eloquent-JavaScript/issues/349#event-1484167857, or mute the thread https://github.com/notifications/unsubscribe-auth/AIemJvjQL4JE-bggBy9a-6hQ8-tx759nks5tW9nHgaJpZM4SMpzI .