![github getify you dont know js github getify you dont know js](https://cdn.marble.cards/images/cards/14/14093/14093-share.png)
Going back to the examples above, if you declare the upper scope greeting as a const then you get an error when you try to change its value, so if the idea was to avoid changes in the upper scope string, const gave you something that you didn't had with var or let. Ideally it should make objects immutable, yes, but that doesn't mean that because it doesn't has that is suddenly worst than var. I also agree that const has limited utility, but still it has at least some utility. 2bor-2n 6 hours ago Looks like the book explains the base/core of JavaScript and how some of the concepts work in JS under the hood.
![github getify you dont know js github getify you dont know js](https://i.stack.imgur.com/f6BMX.png)
You can change every use of let and const with var, but why would you? You could also use Function.prototype pretty much in every place you're using class but you wouldn't. It discusses great edge cases of JS while explaining why or how come they are like this where possible. Nobody said var is broken, it just has a different way of dealing with scope and hoisting that is worst than "the new thing". I agree that var was never broken, but Function.prototype isn't broken either, and folks prefer to use class. Theyre also being professionally edited and published through OReilly.There are five titles planned for the series: two have already been published, the third is complete and in final editing, the fourth is almost complete, and the.
#Github getify you dont know js for free
Enter fullscreen mode Exit fullscreen mode I have been writing a book series on JavaScript called You Dont Know JS.The entire series is being written in the open, up online on GitHub for free reading.