TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Creating a JavaScript object without the new keyword

3 pointsby gurgusalmost 9 years ago

1 comment

dskloetalmost 9 years ago
p2 is not an instance of Person. You also need to make sure p2's constructor is set to Person.
评论 #12004943 未加载