The 'new' keyword - Object Creation in JavaScript P4 - FunFunFunction #50

Опубликовано: 14 Ноябрь 2024
на канале: Fun Fun Function
86,936
2.2k

💖 Support the show by becoming a Patreon
  / funfunfunction  

We explore the new keyword in JavaScript works when applied to functions. This is the old school way of faking classes in JavaScript, prior to the class keyword being introduced in ES6. (We are going to be looking at the JavaScript ES6 class keyword later in this series)

Stuff mentioned in the video:

• Code from the episode
https://gist.github.com/mpj/2a6bd3ec1...

• Full series: Object creation in JavaScript
https://goo.gl/pCt2tX

• Book: JavaScript the good parts
http://amzn.to/2cLGS3p (affiliate link - buying via this gives mpj moneys)

• Episode mentioned: Semicolons cannot save you
https://goo.gl/hEaned

• Music in the video: Peacock by 7 minutes dead
   • 7 Minutes Dead - Peacock  

Hotspots
04:16 Why learn about new in JavaScript
07:58 What does new in JavaScript do
13:40 Apply in JavaScript
15:20 Arguments keyword in JavaScript
17:20 Array.from in JavaScript
22:13 Summary

💛 Follow on Twitch and support by becoming a Subscriber
We record the show live Mondays 7 AM PT
  / funfunfunction  

💛 Fun Fun Forum
Private discussion forum with other viewers in between shows. https://www.funfunforum.com. Available to patron members, become one at   / funfunfunction  

💛 mpj on Twitter
  / mpjme  

💛 CircleCI (Show sponsor)
Robust and sleek Docker-based Continuous Integration as a service. I used CircleCI prior to them becoming a sponsor and I love that their free tier is powerful enough for small personal projects, even if they are private. Use this link when you sign up to let them know you came from here:
https://circleci.funfunfunction.com

💛 Quokka (Show sponsor)
Wonder how MPJ evaluates JavaScript inline his editor. Quokka is the answer - use this link when you buy to let them know you came from here:
http://quokka.funfunfunction.com

💛 FUN FUN FUNCTION
Since 2015, Fun Fun Function (FFF) is one of the longest running weekly YouTube shows on programming 🏅 thanks to its consistency and quality reaching 200,000+ developers.

🤦‍♂️ The Failing Together concept is what makes FFF unique. Most coding content out there focus on step-by-step tutorials. We think tutorials are too far removed from what everyday development is like. Instead, FFF has created a completely new learning environment where we grow from failure, by solving problems while intensively interacting with a live audience.

Tutorials try to solve a problem. Failing Together makes you grow as a developer and coworker.

📹 Each show is recorded live on Twitch in a 2-hour livestream on Mondays. The host, assisted by the audience, is tasked to complete a programming challenge by an expert guest. Like in the real world, we often fail, and learn from it. This, of course, reflects what the audience identifies with, and is one of the most praised aspects of the show.

⏯ On Fridays, an edited version of the show is adapted for and published on YouTube.

Content Topics revolve around: JavaScript, Functional Programming, Software Architecture, Quality Processes, Developer Career and Health, Team Collaboration, Software Development, Project Management