The Importance of THIS in Javascript

  Рет қаралды 20,488

developedbyed

developedbyed

10 ай бұрын

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

Пікірлер: 72
@developedbyed
@developedbyed 10 ай бұрын
Let's take a break from all these frameworks and focus on what actually matters... Javascript
@maherylala2153
@maherylala2153 10 ай бұрын
Yes, a lot of people only know how to code with certain framework and not vanilla js which is totally weird
@avikroy1236
@avikroy1236 10 ай бұрын
Nice one! "this" always becomes a headache
@shubhamrasal8930
@shubhamrasal8930 10 ай бұрын
Please continue with this format. It's really fun and gooood 🔥
@danmaina9731
@danmaina9731 10 ай бұрын
I have never wrap my head around the this keyword until this video. Short and concise. Thanks very much.
@zhanezar
@zhanezar 10 ай бұрын
please do more of these , thsi was really great
@melvinwelton3528
@melvinwelton3528 10 ай бұрын
I love these! I've been coding for a few years and your videos are super helpful. So thank you 🙏
@karlstenator
@karlstenator 10 ай бұрын
I've recently built m first Javascript class for input validation, and it works brilliantly. 🥳 So much easier to maintain and manage.
@itsnerd404
@itsnerd404 10 ай бұрын
Thanks ED Really Appreciate Your Hard Work
@dauda-dev5554
@dauda-dev5554 10 ай бұрын
These small tips, explanations of plain javascript are excellent :)
@RVAraghav
@RVAraghav 10 ай бұрын
I love this video series! Thank you! Btw what’s your camera?
@thegrumpydeveloper
@thegrumpydeveloper 10 ай бұрын
Once I mastered “this”, I spent the rest of my js career actively trying to avoid its complexity and have not missed it.
@ahad1031
@ahad1031 10 ай бұрын
Very helpful thanks😍
@user-gp6si9vw3j
@user-gp6si9vw3j 6 ай бұрын
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!
@kickflipz
@kickflipz 10 ай бұрын
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!!! 😍
@danielhultcodes
@danielhultcodes 10 ай бұрын
I really appreciate these vanilla JS videos!
@huseynfy
@huseynfy 9 ай бұрын
Thank you!
@juliensavary
@juliensavary 9 ай бұрын
great work im learning right by you ed! typescript is a yes for me
@wisdomelue
@wisdomelue 10 ай бұрын
this was a spectacular video🔥
@prasanthmoolethodi3152
@prasanthmoolethodi3152 10 ай бұрын
Thanks a lot bro
@alfiartya23
@alfiartya23 9 ай бұрын
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!
@baahbernard4183
@baahbernard4183 3 ай бұрын
You are amazing. 💫 I learnt a lot.
@BMikel
@BMikel 10 ай бұрын
Great! Please keep up the series! Greetings from Ukraine, Buccha
@francocrovo8394
@francocrovo8394 7 ай бұрын
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.
@naranyala_dev
@naranyala_dev 10 ай бұрын
the pure web, awesome series
@icoderdev
@icoderdev 10 ай бұрын
Thanks for always creating contents like these... ❤❤❤❤❤❤❤❤
@Terms-and-Conditions
@Terms-and-Conditions 10 ай бұрын
you mean content like.this
@joshcool
@joshcool 10 ай бұрын
Love this!
@taylortoast2
@taylortoast2 10 ай бұрын
Very good, Ed!
@CodeOnBlocks
@CodeOnBlocks 10 ай бұрын
What VS Code theme are you using? It's the best I've ever seen.
@cypher0166
@cypher0166 10 ай бұрын
My favorite Dev
@Darkfault
@Darkfault 5 ай бұрын
Hey, do you use your drawing tablet as a second screen when coding?
@user-in2gp8zr4i
@user-in2gp8zr4i 10 ай бұрын
Hi and thank you. Where do I can find console in edge browser?
@salmanfarshisajib6512
@salmanfarshisajib6512 10 ай бұрын
I think focusing in javaScript is a great decision. ❤✌
@louptreize
@louptreize 10 ай бұрын
Amazing 😲
@volavidinspiredclothing8984
@volavidinspiredclothing8984 10 ай бұрын
@developedbyed. Can you share your Gadget setups pls?
@deepumon.d3148
@deepumon.d3148 10 ай бұрын
Great 🥰
@joshmorgantech
@joshmorgantech 10 ай бұрын
Bro you're on the level where someone breathes Code 😀😀😀😂 Thanks so much for the service we appreciate your tutorials🙏🙏
@Seven77tw
@Seven77tw 2 ай бұрын
thank you♥
@aljehammuaadh9079
@aljehammuaadh9079 10 ай бұрын
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 ???
@Jorgeee
@Jorgeee 10 ай бұрын
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?
@n3uron_bloom938
@n3uron_bloom938 10 ай бұрын
What theme do you use for VScode? I like it :)
@CodeOnBlocks
@CodeOnBlocks 10 ай бұрын
Did you find out what the theme was called? I'm trying to figure it out as well.
@annisfun1993
@annisfun1993 9 ай бұрын
i think its Atom one dark
@ilkou
@ilkou 10 ай бұрын
We can also do a 'return this' instead of 'return library' ✌🏼
@BMikel
@BMikel 10 ай бұрын
yes Indeed
@cobrax707
@cobrax707 10 ай бұрын
20:28 you little svelty boyyy
@samnmeje3486
@samnmeje3486 10 ай бұрын
What is your vscode theme
@jxs489
@jxs489 Ай бұрын
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.
@j-0-n-e-z
@j-0-n-e-z 10 ай бұрын
Why do we need document.querySelectorAll.call(document, selector)? Isn't it just complicated version of document.querySelectorAll(selector)? I don't get it
@ValleyDigitalMarketing
@ValleyDigitalMarketing 10 ай бұрын
A breath of fresh air dudes got the formula down.
@DeepLook1
@DeepLook1 10 ай бұрын
Pleaae make js videos that most use in javascript frameworks.
@kasiawu
@kasiawu 9 ай бұрын
I love watching you. :D
@samarnagar9699
@samarnagar9699 9 ай бұрын
discord where????
@waleedsharif618
@waleedsharif618 10 ай бұрын
In ReactJs we dont have “this”, right?
@naranyala_dev
@naranyala_dev 10 ай бұрын
but with tailwind css
@41ex
@41ex 10 ай бұрын
no one's ever called me a sexy sausage before.... i like it....
@aps69
@aps69 10 ай бұрын
Add chapters ed
@ahmedsiddiqui2083
@ahmedsiddiqui2083 10 ай бұрын
Waiting for your redux full beginning to advance video 😢😢
@deepakbhange5715
@deepakbhange5715 10 ай бұрын
Isn't jQuery also do that
@pepumarius2006
@pepumarius2006 10 ай бұрын
there is no magic to these frameworks. They are just JS with some compiler magic :)))
@ilkou
@ilkou 10 ай бұрын
use this comment replies to argue about next and svelte 🔥🔥
@millennia
@millennia 10 ай бұрын
This could be a course 🥳🥹
@samnmeje3486
@samnmeje3486 10 ай бұрын
You didn't mention nuxt and Vue js 😂😂😂
@craizytech9056
@craizytech9056 10 ай бұрын
😂bruh not the sausage
@omarkraidie
@omarkraidie 10 ай бұрын
Get outta here! :D
@harmonreiner7992
@harmonreiner7992 14 күн бұрын
your playlist is a mess...you have vids that are repeats of other vids...24,25,26,30,31,43,45
@kurdm1482
@kurdm1482 10 ай бұрын
what theme is that, please
Page Transitions with 0 Lines of JAVASCRIPT!
6:19
developedbyed
Рет қаралды 41 М.
What is THIS keyword in JavaScript? - Tutorial for beginners
26:40
1 класс vs 11 класс (рисунок)
00:37
БЕРТ
Рет қаралды 3,9 МЛН
Лизка заплакала смотря видео котиков🙀😭
00:33
Парковка Пошла Не По Плану 😨
00:12
Глеб Рандалайнен
Рет қаралды 14 МЛН
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 869 М.
What is Constructor Function in JavaScript? - JS Tutorial
17:40
JS "this" and Function References - What is it all about?
20:20
5 Tips and Tricks To Make Your Life With Next js 14 Easier
17:11
developedbyed
Рет қаралды 15 М.
Learn JavaScript DOM Traversal In 15 Minutes
14:44
Web Dev Simplified
Рет қаралды 217 М.
Top 10 Javascript One Liners YOU MUST KNOW!
14:16
developedbyed
Рет қаралды 188 М.
JavaScript Prototypal inheritance - Tutorial
15:29
ColorCode
Рет қаралды 65 М.
Vortex Cannon vs Drone
20:44
Mark Rober
Рет қаралды 13 МЛН
🔥Новый ЛИДЕР РЫНКА СМАРТФОНОВ🤩
0:33