The Importance of THIS in Javascript
VloĆŸit
- Äas pĆidĂĄn 1. 07. 2023
- Check out my web development courses here đ„
developedbyed.com
In this video, we dive into the power of JavaScript's "this" keyword and explore how it can be used to create a simple library for DOM manipulation and animation. With the help of examples and explanations, you'll learn how to leverage "this" in combination with "apply", "call", and "bind" to build your own jQuery-like functionality.
We start by understanding the concept of "this" and its role in JavaScript. Then, we demonstrate how to create a lightweight library called miniQuery using the "this" keyword. The library allows you to select DOM elements, add classes dynamically, and apply fade-in and fade-out animations.
Throughout the video, we explain each step in detail and provide clear code examples. By the end, you'll have a solid understanding of "this", apply", "call", and "bind", as well as how to create your own DOM manipulation library.
Key topics covered in this video:
- Introduction to "this" keyword in JavaScript
- Exploring "apply", "call", and "bind"
- Building a lightweight library using "this"
- Selecting DOM elements and adding classes dynamically
- Creating fade-in and fade-out animations
đŽ Follow me on:
Twitch: / developedbyed
Twitter: / developedbyed
Instagram: / developedbyed
Github: github.com/developedbyed/
#programming #javscript - VÄda a technologie
Please continue with this format. It's really fun and gooood đ„
Let's take a break from all these frameworks and focus on what actually matters... Javascript
Yes, a lot of people only know how to code with certain framework and not vanilla js which is totally weird
Nice one! "this" always becomes a headache
please do more of these , thsi was really great
I have never wrap my head around the this keyword until this video. Short and concise. Thanks very much.
Thanks ED Really Appreciate Your Hard Work
I love these! I've been coding for a few years and your videos are super helpful. So thank you đ
These small tips, explanations of plain javascript are excellent :)
Very helpful thanksđ
I've recently built m first Javascript class for input validation, and it works brilliantly. đ„ł So much easier to maintain and manage.
Great! Please keep up the series! Greetings from Ukraine, Buccha
this was a spectacular videođ„
I really appreciate these vanilla JS videos!
You are amazing. đ«
I learnt a lot.
Thanks a lot bro
Thanks alot Ed, you're a gift to any aspiring or pro programmer and i enjoy this, much more i really do learn alot from your videos even though i cant comment on all of them or likes but worry not...opportunity will present itself at its time. keep up the good work!
great work im learning right by you ed! typescript is a yes for me
Very good, Ed!
the pure web, awesome series
I love this video series! Thank you! Btw whatâs your camera?
Once I mastered âthisâ, I spent the rest of my js career actively trying to avoid its complexity and have not missed it.
Thanks for always creating contents like these... â€â€â€â€â€â€â€â€
you mean content like.this
Love this type of content, and yeah I agree I love learning what's happening under the hood all of these JavaScript frameworks. And I love and need to learn about typescript so yes please!!! đ
My favorite Dev
Love this!
Thank you!
Amazing đČ
This is great, and I guess that by saying "this" right now, I'm talking about the video...
For some reason some hours ago I was wondering about how jQuery was made, all those chain functions, I didn't expect to get the answer here.
I've been learning JS in 1 year, but this concept of Call, Apply and Bind really made me confuse everytime. Thanks Ed for this explanation video!
I think focusing in javaScript is a great decision. â€â
thank youâ„
Great đ„°
What VS Code theme are you using? It's the best I've ever seen.
20:28 you little svelty boyyy
Bro you're on the level where someone breathes Code đđđđ Thanks so much for the service we appreciate your tutorialsđđ
We can also do a 'return this' instead of 'return library' âđŒ
yes Indeed
Why would we want to use bind instead of just taking a parameter with an object and accessing the object properties from inside the function? Is there any advantage?
I love watching you. :D
@developedbyed. Can you share your Gadget setups pls?
Hey, do you use your drawing tablet as a second screen when coding?
Why do we need document.querySelectorAll.call(document, selector)? Isn't it just complicated version of document.querySelectorAll(selector)? I don't get it
What is your vscode theme
Hi and thank you. Where do I can find console in edge browser?
A breath of fresh air dudes got the formula down.
Its a nice video but which i didn't get is : when you call the call back function after querySelectorAll . Does call back function (call) take more than 1 parameter ???
Pleaae make js videos that most use in javascript frameworks.
What theme do you use for VScode? I like it :)
Did you find out what the theme was called? I'm trying to figure it out as well.
i think its Atom one dark
no one's ever called me a sexy sausage before.... i like it....
In ReactJs we dont have âthisâ, right?
Hello Ed, i cannot find subtitle switcher like i watch your video on youtube. I want to buy this course but i'm not good at listening English, I need subtitle when watch video. Can you add subtitle on your website's course video.
but with tailwind css
Add chapters ed
Waiting for your redux full beginning to advance video đąđą
there is no magic to these frameworks. They are just JS with some compiler magic :)))
discord where????
Isn't jQuery also do that
use this comment replies to argue about next and svelte đ„đ„
This could be a course đ„łđ„č
đbruh not the sausage
You didn't mention nuxt and Vue js đđđ
Get outta here! :D
your playlist is a mess...you have vids that are repeats of other vids...24,25,26,30,31,43,45
what theme is that, please