getify / You-Dont-Know-JS

A book series on JavaScript. @YDKJS on twitter.
Other
179.24k stars 33.48k forks source link

I think the condition in the if statement should be "(new.target === Point2d)" now it is "(new.target === Point2)" #1839

Closed todordiklich closed 2 months ago

todordiklich commented 1 year ago

https://github.com/getify/You-Dont-Know-JS/blame/85b2e6c5fa03b95d044015d6e44b72b8beb6a53b/objects-classes/ch3.md#L569

getify commented 1 year ago

yep, minor typo, thx

naveenprasad07 commented 2 months ago

I solved the issue