Examples of this and bind - Object Creation in JavaScript P2 - FunFunFunction #44

Опубликовано: 07 Октябрь 2024
на канале: Fun Fun Function
100,653
3.2k

💖 Support the show by becoming a Patreon
  / funfunfunction  

Today, I’m going to show examples of this and bind. In the last episode we explored this and bind. Reading the comments of the last video, it’s clear that some people had an aha moment around this, but for a lot of you it this didn’t click. It really, really important that we understand the concept of this in order to learn the object model in JavaScript, so I’m going to spend a video on doing a bunch of more examples, so that more people get it.

This video is part a series on object creation on JavaScript, that is for you if are coming from another programming language into JavaScript and you’re already somewhat familiar with object oriented programming. You know what classes and inheritance is, but you’re confused about how object orientation is done in JavaScript. You’ll get much more out of this video if you watch this series from the the start - you can find a link the full series in the episode description.

Table of contents:
02:19 ► What is this in JavaScript
04:16 ► Bind in JavaScript
06:29 ► Functions as properties on objects
07:00 ► Functions are values in JavaScript

Resources:
Object creation in JavaScript - Complete series playlist
https://goo.gl/RaBJDo

💛 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