nzakas / understandinges6

Content for the ebook "Understanding ECMAScript 6"
5.45k stars 796 forks source link

Typo in Chapter 13 Summary #468

Closed leoelz closed 2 years ago

leoelz commented 2 years ago

Based on Basic Importing section (Line 71), imported names from other modules act as if defined by const and in the summary it says let instead

nzakas commented 2 years ago

I believe this section is the correct one and line 70 is incorrect.

leoelz commented 2 years ago

Nicholas, it's an honor! Both let and const can't be redeclared in the same module, but let allows change binding's value and const doesn't (as the imported bindings). So I think that const is more appropriated than let. image

nzakas commented 2 years ago

Oops, yes, you're right. Thanks!