Modern JavaScript Tutorial #6 - The Document Object Model

  Рет қаралды 263,128

Net Ninja

Net Ninja

5 жыл бұрын

💻 Get the full Modern JavaScript (novice to ninja) course from Udemy. Discount auto applied:
www.thenetninja.co.uk/udemy/m...
Hey ninjas, in this modern JavaScript tutorial I'll explain the basics of the DOM (document object model) and show you how to query elements using the query selector & change the content f a web page.
----------------------------------------
🐱‍💻 🐱‍💻 Course Links:
+ Course files - github.com/iamshaunjp/modern-...

Пікірлер: 353
@Raspace
@Raspace 4 жыл бұрын
0:45 DOM Introduction 7:05 Query Selector 12:15 Query Selector All 15:38 Getting element by ID 16:56 Getting element by Class Name 19:18 Getting element by Tag Name 21:06 Changing text inside element 25:36 Changing HTML inside element 30:50 Getting and setting attribute of element 42:19 Adding and removing class 45:55 Challenge 51:08 Toggling class
@markwilde5683
@markwilde5683 4 жыл бұрын
Thank you friend!
@lucymcloughlin6190
@lucymcloughlin6190 4 жыл бұрын
You! 😍
@ahsanjawaid7014
@ahsanjawaid7014 3 жыл бұрын
Thank you so much
@_.Mustafa._
@_.Mustafa._ 3 жыл бұрын
Thanks man !
@jimhalpert9803
@jimhalpert9803 3 жыл бұрын
Hero
@GJihed
@GJihed 4 жыл бұрын
One of the best Javascript course I've ever seen, really thank you for this work, very well structured, simple and very very very easy to understand. It's not easy to for me to be 100% concentrated on 60 min video but you just did it. I learned so much and i recommend this course to any beginner or experienced developer who want to know more about Javascript.
@NetNinja
@NetNinja 4 жыл бұрын
Thanks Jihed :)
@mykhailorozantsev8312
@mykhailorozantsev8312 4 жыл бұрын
Great gob ninja, I grab your curs on Udemy see you gays there !
@CaleCabrera07
@CaleCabrera07 3 жыл бұрын
I just finished the whole tutorial and I must say It’s one of the greatest tutorials I’ve ever taken! Absolutely useful even 2 years later 🤯 Thank you so much shaun, appreciate it 🙌🏻
@dawoodchowdhury5581
@dawoodchowdhury5581 4 жыл бұрын
Hey man. Your lectures are so clear and concise. Thank you so much for putting these up!
@scooble
@scooble 3 жыл бұрын
I've watched quite a few tutorials from various knowledgeable experts, who clearly know what they're talking about, but I found myself getting lost when they don't refer back to the results or the original HTML often enough. When learning, I find it important to clearly show the results both before and after performing some action. You clearly did this and I now come away with a better mental model of how to do DOM scripting.
@yawmanuel9758
@yawmanuel9758 4 жыл бұрын
Done watching all the six vids, and this is the best javascript video i hv ever watched. Legend!
@Ali-vz9rs
@Ali-vz9rs 4 жыл бұрын
You have no idea how much I appreciate your work. Thank you Shaun.
@julianjohnmert8658
@julianjohnmert8658 3 жыл бұрын
I came to Sensei Shauns channel for a github tutorial. Now I know html and css as well as modern javascript XD. You're content is not only amazing but it is addictive like a television series because you are such a fantastic teacher and I will be purchasing almost every course you have when I start work in March 2021. I am proud to be a ninja.
@castlemoyle
@castlemoyle 4 жыл бұрын
WOW! This is great. I've got a site with about 25-30 pages on it that I've wanted to expand. Except then I'd have to update the menu structure every time I added a new page. Instead, I can just create a .js file with the menu code in an html template and by adding two lines (one that an empty div to hold the menus and the other a link to the js src), all I have to do is update the javascript and it gets reflected everywhere. COOL!
@SuperDali4
@SuperDali4 4 жыл бұрын
This series has a fantastic overview over the JavaScript topics. Big recommendation 🔥
@yayitseugene
@yayitseugene 2 жыл бұрын
Just finished your six videos on modern JS! Your tutorials are more clear than my CS professor. Ended up getting the rest of this course, try to be a JavaScript pro 💪
@yangzheng9581
@yangzheng9581 2 жыл бұрын
Just finished this course! It was great as usual when it is done by the net ninja ! Thanks again for the great effort.
@rawhasan1180
@rawhasan1180 4 жыл бұрын
The best style of teaching a complex thing I've ever had! Thank you so much for keeping it free! I'll recommend anyone looking for learning JavaScript to sign-up for the Udemy course by this author.
@NetNinja
@NetNinja 4 жыл бұрын
Thanks so much :)
@gslvqz8812
@gslvqz8812 4 жыл бұрын
I followed your tutorials until this point. I successfully completed the assignment of giving the class of error/success to the elements without watching your explanation. That was huge for me because I have been trying to learn and I always get discourage by the way other instructors have approach their tutorials/courses. But it goes with no saying, that I have just purchased your course and I am committed to work on it diligently. Thank you for sharing your work until this point and thank you for putting together the complete course on Udemy.
@NetNinja
@NetNinja 4 жыл бұрын
Thank you so much, I really hope you enjoy the rest of the course & that it offers you as much value :).
@license2Bort
@license2Bort 4 жыл бұрын
This is the best DOM video I have seen. Thank you so much!
@user-qe7xn9vv2o
@user-qe7xn9vv2o 4 ай бұрын
OMG i love this. I never comment on videos but after watching this 4 years later and i can say this is gold. I wish i had money for the full course though
@sakihayashi8769
@sakihayashi8769 4 жыл бұрын
Honestly, better tutorial than a Bootcamp I paid for... shockingly great. Thanks, Ninja!
@user-xd2oz3vn2b
@user-xd2oz3vn2b 2 жыл бұрын
Thanks a lot for this video series. I have been using JS for about six years, but I couldn't understand some simple things until watching these videos.
@kunkr1978
@kunkr1978 4 жыл бұрын
Thank you for this free tutorial series, it has helped me A LOT. I have watched and gone through other JS tutorials, but none have really expressed the interactivity as you did in this video. I will be taking your Udemy course in the near future and will be recommending these videos to anyone interested in learning JS. Thank you, keep doing what you do, you're great at it!
@NetNinja
@NetNinja 4 жыл бұрын
Thanks so much :)
@imenenasri8739
@imenenasri8739 3 жыл бұрын
Thanks a lot for this serie. I like your way of teaching. I think your videos are the best ever for someone who doesn't have basics in programing languages.
@peixefelipe16
@peixefelipe16 3 жыл бұрын
This is the best DOM tutorial I've found! And I looked for it everywhere. Thank you, The Net Ninja!
@NetNinja
@NetNinja 3 жыл бұрын
Glad it was helpful! :)
@geralddarkobekoe
@geralddarkobekoe 5 жыл бұрын
Thanks a lot man,i finished the entire playlist and it was gold.You're not just saving Princess Peach but guys like me too hahaha
@NetNinja
@NetNinja 5 жыл бұрын
Haha glad to hear :D
@jbrenes
@jbrenes 4 жыл бұрын
Amazing class and series! I learned a lot. you have a gift for teaching dear sir.
@AnuragSingh-cd7tt
@AnuragSingh-cd7tt 3 жыл бұрын
I have come across many udemy courses and youtube tutorials but net ninja is by far the best! He just gets you hooked on "studies!"!!
@InnoTechWorld
@InnoTechWorld 4 жыл бұрын
Thank you so much you've made me love JavaScript
@daivikverma07
@daivikverma07 Жыл бұрын
thank you this is the best js course on youtube! first time i understood and coded js like that, great work man!
@NetNinja
@NetNinja Жыл бұрын
Thanks Daivik, glad it helped!
@elusariosinnombre2058
@elusariosinnombre2058 2 жыл бұрын
Best DOM manipulation guide I've found yet!
@merimagdi
@merimagdi 4 жыл бұрын
After finishing the whole JS playlist, I just bought the full course. I wasn't sure about it because my mother language isn't English, but you explain it so clear that it is very easy to understand it all. Thank you so much for the quality of your "teaching". See you there Shaun!
@NetNinja
@NetNinja 4 жыл бұрын
Awesome! Glad you are enjoying the course, thanks for buying it :)
@triducal
@triducal Жыл бұрын
one of the best instructors on youtube. You've taught me a ton of html, css, and js in 2 weeks and I'm picking it up pretty quickly.
@Onepiece-471
@Onepiece-471 Жыл бұрын
I like your logo btw
@triducal
@triducal Жыл бұрын
@@Onepiece-471 thanks
@alexanderchamwada9522
@alexanderchamwada9522 4 жыл бұрын
This is the best javascript tutorial i came across.I learnt a lot.Thank you a million times.
@NetNinja
@NetNinja 4 жыл бұрын
Thanks so much :)
@marakeshg8112
@marakeshg8112 2 жыл бұрын
I don't think I've ever learned so much, so easily! I'll be looking into your udemy course. Thank you!!!
@bracekev
@bracekev Жыл бұрын
You ARE the absolute BEST Instructor I have ever had. I have been programming for 23 years and you are hands down the BEST Instructor ever!!! Thank you!!!
@NetNinja
@NetNinja Жыл бұрын
Wow, thank you! :) means a lot
@Shifan76
@Shifan76 2 жыл бұрын
Teaching is an art and Shaun is gifted that. Thank you so much for the great tutorial. I will definitely enroll to the Udemy course to continue with other sections. Keep up your good work.
@NetNinja
@NetNinja 2 жыл бұрын
Thank you for the support and kind words Mohamed - means a lot!
@chinedujonathan4238
@chinedujonathan4238 23 күн бұрын
Thank you for the opportunity to learn the basics of JavaScript. I feel powerful already 🙂
@imaginamais4481
@imaginamais4481 3 жыл бұрын
I brought this course right now and I'm SOOOOOOOOOOOOOO excited to start! :)
@ritjoshi6155
@ritjoshi6155 3 күн бұрын
Thanks Shaun for these course, I wish you all the very best, love from INDIA ♥
@patrickknows2296
@patrickknows2296 3 жыл бұрын
This is the day I fully understand the DOM. Thanks Ninja
@DmitryPopovFreeWind
@DmitryPopovFreeWind 5 жыл бұрын
Thanks again! I bought the course without any doubt!
@vinceluzon
@vinceluzon 3 жыл бұрын
Thank you The Net Ninja. Finally, I fully understand Javascript!
@luisalbertoluft5306
@luisalbertoluft5306 4 жыл бұрын
Thank you for all the amazing tutorials! As a self taught developer your videos have helped me a lot!
@mrjh8467
@mrjh8467 3 жыл бұрын
I can't believe I only found your channel just days before my exams. Better late then never!
@gamester7152
@gamester7152 Жыл бұрын
thank you so much for tutorial bro. this is best tutorial for javascript i ever had.
@haneen4husseen821
@haneen4husseen821 2 жыл бұрын
Really helpful video. It helped me finishing my assignment. Thanks
@jjspelman
@jjspelman 4 жыл бұрын
Great stuff. As soon as we started manipulating html and css I was hooked. Just purchased the course. Looking forward to the projects/apps to build Thanks!
@NetNinja
@NetNinja 4 жыл бұрын
Awesome, thanks so much, hope you enjoy it :D
@SJ-qm5fv
@SJ-qm5fv 3 жыл бұрын
Thank you so much for these tutorials. Beyond helpful! Can't believe I learned so much. Just purchased your Udemy Course, can't wait to dive in!
@NetNinja
@NetNinja 3 жыл бұрын
Awesome thank you so much :)
@Cricupdates-yz5dp
@Cricupdates-yz5dp 4 жыл бұрын
Thanks a lot I finished the entire playlist and it is gold. plz upload more videos
@oghenekevweokorosobo8156
@oghenekevweokorosobo8156 3 жыл бұрын
You made javascript easy to learn,...... I’ve come a long way from mimo down to SoloLearn to freecodecamp to a free trail of Team Treehouse and none of them explains in Dept like you do...I so love your teaching and I would by Gods grace buy your course at Udemy...
@oussamaboumhaout3619
@oussamaboumhaout3619 4 жыл бұрын
you impress me more and more ! thank you for your ninja services .
@judisjeevan4908
@judisjeevan4908 3 жыл бұрын
You are the real net ninja !!!! Thank you very much Shaun..
@israimovich
@israimovich 3 жыл бұрын
Amazing tutorials, watching the Net Ninja since 2018
@russelldriver6394
@russelldriver6394 5 жыл бұрын
You absolute legend, thanks so much for all your videos!
@mohamedamarfilali
@mohamedamarfilali 4 жыл бұрын
Thank you shaun, this is the best javascript course and i've tried a lot, I just bought the udemy course, and thank you for the other courses.
@NetNinja
@NetNinja 4 жыл бұрын
Thanks so much for buying the course, hope you enjoy it! :)
@watchanimes9365
@watchanimes9365 Жыл бұрын
I'm very tankful for this course I learned what I did not in the last years in the classroom ty man ty.
@NetNinja
@NetNinja Жыл бұрын
That's great to hear, thanks Watch!
@pankajwadhawan1551
@pankajwadhawan1551 4 жыл бұрын
HI Shaun, Thanks for this JavaScript series. It is really helpful. Easy to map all the concept in mind with the help of your teaching. I learned so much. Looking forward to buy your udemy full course.
@NetNinja
@NetNinja 4 жыл бұрын
Thanks so much, the discount is auto applied in the link below :) www.thenetninja.co.uk/udemy/modern-javascript
@aurelienbaraka2527
@aurelienbaraka2527 Жыл бұрын
Tu es seulement le meilleur The Net Ninja. You are the best of the best, le top de top, la crème de crème.
@yinonb172
@yinonb172 3 жыл бұрын
Best JavaScript Tutorial, I bought the full course and it is excellent ! , Arrigato Net Ninja San !
@adelsafi1581
@adelsafi1581 4 жыл бұрын
one of the best javascript course, tanx a lot
@darrylbrian
@darrylbrian 5 жыл бұрын
lorem error ipsum lorem success ipsum lorem ipsum lorem lorem ipsum success error lorem ipsum lorem ipsum lorem lorem ipsum error success lorem ipsum
@feng282
@feng282 3 жыл бұрын
thankyou
@christiananjemo9047
@christiananjemo9047 4 жыл бұрын
Just finished these 6 chapters. Thanks a lot, this is really awesome and I just bought your udemy course!
@NetNinja
@NetNinja 4 жыл бұрын
Awesome, thank you! I hope you enjoy it :D
@Neryos
@Neryos Жыл бұрын
Thx a lot mate. Now moving to your React course. Great content and explanation !
@tayfun6378
@tayfun6378 4 жыл бұрын
well I've been dealing with vanilla js and react for a couple of months now but I've decided to reinforce my JS skills from the scratch and started watching this series just because it's from Shaun. and as I guessed beforehand, this now let me to buy the follow up course on Udemy. man I feel like a bot who propagates an ad :D this is real word of mouth.
@NetNinja
@NetNinja 4 жыл бұрын
Thank you! Hope you enjoy :D
@hamzavictor2385
@hamzavictor2385 8 ай бұрын
I appreciate your tutelage Shaun. My very lengthy road of getting to the solution. const paras = document.querySelectorAll("p"); paras.forEach(para=>{ let list = para.innerText.split(" "); for(let i = 0; i
@yangzheng9581
@yangzheng9581 3 жыл бұрын
great effort that you had paid off, millions thanks Shaun !
@DragonwingZify
@DragonwingZify Жыл бұрын
My assignment based on challenge was this: //loop through p tags const content = document.querySelectorAll("p"); content.forEach((pTag) => { // add new variable that have keywords success or errors let text = pTag.innerText; // console.log(text ); if (text.includes("error")) { pTag.classList.add("error"); } else if (text.includes("success")) { pTag.classList.add("success"); } else { pTag.style.color = "orange"; pTag.style.border = "1px dotted"; } }); After looking at the solution I could see that I could've cut some code, but I managed to do the assignment which I was proud of. Thanks for giving out those really useful resources out on the internet for free Shaun, I really appriciate it a lot!
@blitzgaming2771
@blitzgaming2771 Жыл бұрын
This is the best DOM tutorial. Thank you very much!
@NetNinja
@NetNinja Жыл бұрын
You're very welcome! :)
@ufyohwo3613
@ufyohwo3613 9 ай бұрын
Thank you so much for this playlist! I learnt a lot. You are an amazing teacher.
@NetNinja
@NetNinja 9 ай бұрын
Glad it was helpful! :) thanks for watching
@BizzaroBrainBoi
@BizzaroBrainBoi 8 ай бұрын
I just finished the course! IT WAS EXCELLENT! THANK YOU!
@NetNinja
@NetNinja 8 ай бұрын
You're very welcome! :) glad it helped. Thanks for watching!
@GeefeAlba
@GeefeAlba 2 жыл бұрын
This always confused me. Thank goodness I found your tutorial!❤ My friends recommended you on Twitter.❤
@e11world
@e11world 3 жыл бұрын
really enjoyed this. thank you very much you really deserve all the best
@catamazing2171
@catamazing2171 2 жыл бұрын
I'm glad I found this video , thank you.
@massivewon
@massivewon 10 ай бұрын
Excellent course! Looking at all of your content, you are one of the best teachers I've ever had. And that's after having been through university lol. Force be with you always.
@NetNinja
@NetNinja 10 ай бұрын
Thanks, that means a lot :)
@joelindo9273
@joelindo9273 Жыл бұрын
I've been watching your videos and they have been great. Everything leading up to here (HTML, CSS and now this) have been some of the best online tutorials I've seen. However for the first time I find myself a little lost. The examples here are well done, I just don't know why anyone would ever use these queries when you can simply change the html file? If anyone reading this provide a real world example or further clarify the why, it would be greatly appreciated. Thanks!
@hsumyat1265
@hsumyat1265 2 жыл бұрын
Your videos are really helpful! Thanks alot 🙂
@liabutlermedina3349
@liabutlermedina3349 3 жыл бұрын
I love your tutorials, thanks a lot :)
@DmitryPopovFreeWind
@DmitryPopovFreeWind 5 жыл бұрын
QuerySelectooooor)))) thanks for video! You are explaining so good!
@kasmr6860
@kasmr6860 5 жыл бұрын
please more of it!!!! so helpfull and interesting!
@goosefx5435
@goosefx5435 5 жыл бұрын
Query Selectooooooor :D awesome tutorials man!!
@disnelson308
@disnelson308 3 жыл бұрын
Please post the remaining sections. This is easily the best Javascript tutorial on the planet. End of story...
@SUR-MEDIA-xc2cd
@SUR-MEDIA-xc2cd 5 ай бұрын
Really amazing tutorial. I learned a lot of things, and it cleared all of my confusions, I must thank you for such tutorials, All because of you I fell in love with programming and coding, thanks again, wishing you all the best and the path of eternity.
@NetNinja
@NetNinja 5 ай бұрын
Waking up to a comment like this is what it's all about, thank you so much for your kind words! :) glad it helped.
@SUR-MEDIA-xc2cd
@SUR-MEDIA-xc2cd 5 ай бұрын
Your concern for us shows your kindness, A lot of people lack such emotions(such as kindness), thanks for such a beautiful comment for your student, again wishing you all the best and the path of eternity @@NetNinja
@Omar_Muhammad
@Omar_Muhammad 3 жыл бұрын
Thanks a lot, man u get me on the tracks
@codewithbishal895
@codewithbishal895 2 жыл бұрын
literally the best javaScripy ninja
@itsQuark
@itsQuark 3 жыл бұрын
You are an excellent teacher!
@kuyaq8544
@kuyaq8544 3 жыл бұрын
these videos are so clutch javascript down , node and express next thx
@rossmanmagnus
@rossmanmagnus 4 жыл бұрын
Very useful guide because it considers modern solutions and es6
@romeissa5232
@romeissa5232 2 жыл бұрын
Thanks a lot , it was very informative.
@PoonamSharma-uz3qf
@PoonamSharma-uz3qf Жыл бұрын
Very Impressive.. Thank you so much!! I recommend it !!
@NikhilAdiga
@NikhilAdiga 5 жыл бұрын
Thank you Sensei 🙏🏾
@inka7961
@inka7961 4 жыл бұрын
Wow, I wanted more by the end of #6 and I purchased Udemy to continue. This is probably the only online course that kept my attention from the beginning till the end, and probably the only I will actually finish without skipping! From someone who is studying web dev atm (JS, React..) I can say, YOU ROCK
@NetNinja
@NetNinja 4 жыл бұрын
Thanks so much for buying the course! In the future, for sure, there will be React! :).
@thekuzicartoon
@thekuzicartoon 3 жыл бұрын
completely agree 100%!
@channel_2000
@channel_2000 2 жыл бұрын
The only video I found that truely shows the way to connect javascript with html. Thanks a lot man !! (Given that you know the basics of html, css selectors and javascript) Any discount for the full course soon?
@afsalfazir5173
@afsalfazir5173 3 жыл бұрын
Thanks making javascript easy 🥰
@srinivasaraoyp3640
@srinivasaraoyp3640 Жыл бұрын
Very interesting topic on DOM manipulation. Thank you.
@NetNinja
@NetNinja Жыл бұрын
Very welcome :) thanks for your comment
@AbhishekKumar-mq1tt
@AbhishekKumar-mq1tt 5 жыл бұрын
Thank u for this awesome video and series
@afterglow1390
@afterglow1390 4 жыл бұрын
Love your teaching bro
@MsLiberanimus
@MsLiberanimus Жыл бұрын
thanks for this course, it means world to me :D you are great teacher!
@NetNinja
@NetNinja Жыл бұрын
Thanks Tamara, you're very welcome!
@gina7898
@gina7898 Жыл бұрын
OMG! I've learned a looooot from this
@AK243RDC
@AK243RDC 3 жыл бұрын
Amazing serie! I'm definitely going to take the udemy course
@Fibr3Optix
@Fibr3Optix 3 жыл бұрын
Just so you know. IF you make your JS script external and are getting null errors in console, link ( tag) it at the bottom before the tag.
@supriyadhouni9108
@supriyadhouni9108 5 жыл бұрын
Hey Ninja! Please make a playlist in Angular. Looking forward to it.
@prosonulhaque8949
@prosonulhaque8949 3 жыл бұрын
Awesome course! Love you man
@viber6248
@viber6248 Жыл бұрын
Thank you so much for the course. As a university student, this helps a lot🙌🏼
@NetNinja
@NetNinja Жыл бұрын
Happy to hear that! :)
Modern JavaScript Tutorial #5 - Objects
37:36
Net Ninja
Рет қаралды 300 М.
Learn DOM Manipulation In 18 Minutes
18:37
Web Dev Simplified
Рет қаралды 1 МЛН
Incredible magic 🤯✨
00:53
America's Got Talent
Рет қаралды 74 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 37 МЛН
DOM API - JavaScript Tutorial for beginners
42:17
ColorCode
Рет қаралды 29 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 922 М.
The DOM in 4 minutes
3:51
Aaron Jack
Рет қаралды 106 М.
JavaScript DOM Manipulation Mastery: A Comprehensive Guide
1:25:33
Envato Tuts+
Рет қаралды 38 М.
What is DOM | Document Object Model | Beginner Tutorial
6:58
Automation Step by Step
Рет қаралды 487 М.
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
Object-oriented Programming in JavaScript: Made Super Simple | Mosh
1:02:49
Programming with Mosh
Рет қаралды 1,9 МЛН
Learn JavaScript DOM Traversal In 15 Minutes
14:44
Web Dev Simplified
Рет қаралды 221 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,1 МЛН