You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, the solution should indicate that these two cases
// exercise 1.1.6
const a = 3; // prints undefined
// exercise 1.1.7
const b = a + 1; // prints undefined
should print undefined. Constant declarations don't produce any value in JavaScript. Chapter 1 doesn't mention this, but the excercise solution would be an opportunity to point this out.
Both when running the example code in the inline IDE and also in the browser's console, the following expressions result in
undefined
being printed:In the solutions, the values listed are
3
and4
respectively. Which, given the results above, is incorrect.The expressions that do result in
3
and4
would be:See attached screenshots for proof.
inline IDE results
console results
console corrected results
The text was updated successfully, but these errors were encountered: