DOM API - JavaScript Tutorial for beginners

Поделиться
HTML-код
  • Опубликовано: 2 июн 2024
  • JavaScript DOM API, what it is, how to use it, and why use it at all?! It's used by ReactJS, AngularJS, VueJS, jQuery, and most other JS libraries to manipulate the DOM.
    This is episode 15 of 20 things Javascript Developers Should Know But Probably Don't.
    00:00:00 Intro
    00:01:47 What is the DOM API?
    00:03:52 Setup
    00:04:36 Document interface
    00:05:40 Click eventListener
    00:06:30 Head, Body and Children
    00:08:15 Add new Elements
    00:12:50 Add dynamic date
    00:15:00 To Do App
    00:21:55 Semantic HTML
    00:26:50 Remove Elements
    00:31:55 Styling & Attributes
    00:35:00 Add new Attributes
    00:36:30 Query the DOM
    00:39:43 Summary
    00:41:15 Outro
    ColorCode Etsy Merchandise store:
    www.etsy.com/shop/ColorCodeStore
    DOM API (MDN):
    developer.mozilla.org/en-US/d...
    Full playlist here: • 20 Things JavaScript D...
    JavaScript Promises from the series "20 Things JS Developers Should Know but Probably Don't"
    by ColorCode.io, Sina Jazayeri
    ** Announcement **
    Full JavaScript Mastery course is coming! Details at the end of the video. Sign up for Early Access here:
    www.colorcode.io/js-mastery
  • НаукаНаука

Комментарии • 217

  • @bmehder
    @bmehder 7 месяцев назад +28

    Quality over quantity. I have watched all these videos multiple times.

    • @ColorCodeio
      @ColorCodeio  7 месяцев назад +1

      Thanks brother! Nice to see you in the comments section again :)

  • @garymathe9863
    @garymathe9863 2 месяца назад +4

    This guy is criminally undersubscribed.

  • @mohammadabbas1623
    @mohammadabbas1623 7 месяцев назад +24

    I'm so happy that you are back sir . now just cover all 5 remaining topics quickly 🙏

  • @aziskgarion378
    @aziskgarion378 7 месяцев назад +5

    I just discovered this channel and was watching videos from last year. Didn't realize there was a fresh video from a week ago. Amazing job. Keep doing it. Till 20!

    • @ColorCodeio
      @ColorCodeio  5 месяцев назад

      Hell yeah! More vids coming soon

  • @ColorCodeio
    @ColorCodeio  7 месяцев назад +10

    Episode 15: The DOM API 🤘👨‍💻🔥🎉

  • @billymaaa
    @billymaaa 5 месяцев назад +4

    Best js tutorial on youtube! I love how you make every second so entertaining and easy to digest! Keep up the amazing work and I can't wait for your future videos, podcast, and mastery course!

    • @ColorCodeio
      @ColorCodeio  5 месяцев назад +1

      Thanks so much Billy. Made my day.

  • @nancychaudhry3623
    @nancychaudhry3623 7 месяцев назад +2

    Wow! Great to have you back and another great video!

    • @ColorCodeio
      @ColorCodeio  7 месяцев назад

      Thank you! Good to be back.

  • @ciprianparaschiv7591
    @ciprianparaschiv7591 7 месяцев назад +11

    Yo, thanks for this and the whole series. It's super useful. This vid in particular I really wished I had it a couple of months ago. Had to discover most of this by trial and error. Great content!

  • @web-sd9be
    @web-sd9be 7 месяцев назад +3

    One of the best channels for programming hands down. Thank you very much sir. :)

    • @ColorCodeio
      @ColorCodeio  7 месяцев назад +1

      You are most welcome

  • @iambestin
    @iambestin 7 месяцев назад +1

    Missed your videos for quiet a longtime. Great your back :)

  • @zhiend3935
    @zhiend3935 7 месяцев назад +2

    Your videos deserves much more than 5k

  • @user-oz3xy9th3u
    @user-oz3xy9th3u 7 месяцев назад +1

    i'm so glad you're back! thank you so much! id really appreciate it if you make a video on ES6 modules

  • @pzpalasti
    @pzpalasti 7 месяцев назад +1

    Congrats!!! 🎉 and thank you for the new video!!

  • @12345678uygfcxdrtghn
    @12345678uygfcxdrtghn 7 месяцев назад +3

    Good tutorial, awesome quality/editing as always, little more beginner friendly (most JS devs probably know that already). Say hi to Quoli! Ciao!

  • @adam29334
    @adam29334 7 месяцев назад +1

    good to see you back dude!

  • @user-is8yk4iq7f
    @user-is8yk4iq7f 2 месяца назад +1

    I have the perfect playlist on my collection appreciate your contribution sir

  • @opencode1
    @opencode1 7 месяцев назад +2

    Thnx God i have my notification open for you. Looooooooooove it haha i was going back to prototype 3 days ago

    • @ColorCodeio
      @ColorCodeio  7 месяцев назад

      You won't have to wait along anymore :) I'm back!

    • @opencode1
      @opencode1 7 месяцев назад

      You are an amazing teacher. Welcome Baaaaack @@ColorCodeio

  • @thesaqlain
    @thesaqlain 4 месяца назад

    Hats off to you... your teaching style and how you present the scenario is literally .... i mean i have no words to describe it

  • @hanshochbaum4335
    @hanshochbaum4335 7 месяцев назад +2

    Hello Sina,
    I'm in a 3 year computer Science course and because of your content I have a deeper understanding of JavaScript's internal framework.
    Thanks,
    Al

  • @javeedakhter324
    @javeedakhter324 7 месяцев назад +1

    Was waiting from a long time🎉

  • @keshavakumar9828
    @keshavakumar9828 7 месяцев назад +1

    It's good to see you back. RUclips lacks quality which you give us.

  • @jollyren
    @jollyren 7 месяцев назад +1

    I'm sooooo happy you made another video

    • @ColorCodeio
      @ColorCodeio  7 месяцев назад

      Me too! More coming soon.

  • @Wakkyguy
    @Wakkyguy 7 месяцев назад +1

    Have been missing the fun for a while!

    • @ColorCodeio
      @ColorCodeio  7 месяцев назад +1

      Fun is. back!

    • @Wakkyguy
      @Wakkyguy 7 месяцев назад

      @@ColorCodeio ♥

  • @fernandodasilvagomes7905
    @fernandodasilvagomes7905 6 месяцев назад +2

    Mesmo com dificuldade de entender o ingles, amo seus videos! continue

  • @dios8256
    @dios8256 6 месяцев назад +1

    Some very nice special effects in this video 🤩

  • @priyanshuagrawal9204
    @priyanshuagrawal9204 7 месяцев назад +1

    Finally after such a long long time 🎉🎉❤❤

  • @shan_arosh
    @shan_arosh 7 месяцев назад +1

    glad you're back

  • @shonuff4323
    @shonuff4323 7 месяцев назад +1

    Love your lessons!

  • @DevlogBill
    @DevlogBill 7 месяцев назад

    ColorCode, welcome back! Watching your videos, I always pull out the notepad and pen and take plenty of notes! I always learn a lot from you, thank you.
    Question? Is there any relation between you and the other RUclipsr "The Coding Train"? You both have somewhat similar styles in teaching and great humor.

    • @ColorCodeio
      @ColorCodeio  6 месяцев назад

      No relation, but he's great

  • @2difficult2do
    @2difficult2do 7 месяцев назад +1

    It's good to see and hear you again. ☝️😼👍

  • @scottldn
    @scottldn 7 месяцев назад +1

    Good to see you back 💪

    • @scottldn
      @scottldn 7 месяцев назад

      And congratulations 🥂 !

    • @ColorCodeio
      @ColorCodeio  6 месяцев назад

      Thank you

  • @G_Breaker
    @G_Breaker 3 месяца назад

    I love your approach of teaching ,You will hit that 1M in no time

  • @aminkhakzad9257
    @aminkhakzad9257 7 месяцев назад +1

    آقا خیلیم عالی و قوی دمت گرم ❤

  • @freakymickey
    @freakymickey 5 месяцев назад

    At first, I thought you are kindda overdoing the act, But later I found you and your teaching AMAZING than any other people out there. I mean it. Wish to have you in my contact list.❤🔥

  • @haallefs
    @haallefs 6 месяцев назад +1

    Thanks for this fantastic content! 😊

    • @ColorCodeio
      @ColorCodeio  5 месяцев назад

      Thanks for this fantastic comment

  • @kamil4351
    @kamil4351 7 месяцев назад +1

    nice to see you again :)

  • @harvard004
    @harvard004 7 месяцев назад +1

    Welcome back!!!!

  • @jasvindersingh6915
    @jasvindersingh6915 5 месяцев назад +1

    Thank you for these videos sinaaaa😅, learnt alot . Looking forward to get more fundamental JS videos 😊

  • @chhavimanichoubey9437
    @chhavimanichoubey9437 7 месяцев назад +2

    Congratulations to you sir, and congratulations to me (because your js videos helped me understand js).

  • @fasteditsyt
    @fasteditsyt 13 дней назад +1

    My brain is so big now! TY

  • @affanahmed2897
    @affanahmed2897 6 месяцев назад

    Hello Sina! I'm thrilled to be your new student from Pakistan. I recently watched your fantastic video on Asynchronous JavaScript, and it really helped clear up some of my concepts. I'm so thankful for that!
    As a newcomer, I've noticed that some developers use the 'const' keyword, while others use the 'function' keyword when creating functions. I'm a bit confused about which one to use. Does it depend on specific conditions or circumstances? Your guidance would mean a lot to me. I'm really excited to learn from you!😊🙌

  • @mohammadkhakhsoor2068
    @mohammadkhakhsoor2068 7 месяцев назад

    Wooow , sina
    Finally you came back
    Im here to say a big hello to Qoli

  • @AlAminKhan03
    @AlAminKhan03 7 месяцев назад +1

    So good to see you , Please be regular with us😭

  • @Nathaniel_Cos
    @Nathaniel_Cos 7 месяцев назад +1

    Thanks for useful staff

  • @JeetKRamnani
    @JeetKRamnani 7 месяцев назад

    Miss you sir ❤ finally back with Js and humour ❤

  • @anthonytirop1338
    @anthonytirop1338 7 месяцев назад +1

    incredible session

  • @hcw1566
    @hcw1566 7 месяцев назад +1

    U R BACK~~!!

  • @SK4-music
    @SK4-music 7 месяцев назад +1

    omg this course is just flames 🔥

  • @federexpotolin6284
    @federexpotolin6284 5 месяцев назад

    your content is very helpful to me. Please continue to make more videos like this. And use real life example

  • @hooman_talakian
    @hooman_talakian 7 месяцев назад +1

    Amazing Content 🏆

  • @carljung2850
    @carljung2850 7 месяцев назад +1

    this is freaking great

  • @petesampras2611
    @petesampras2611 6 месяцев назад +1

    Great videos. If/when you do have time, perhaps you can do a video that walks users through actual websites, and where JS comes in. More like a case study with illustrative examples. Thanks for spending time and posting highly useful content.

    • @ColorCodeio
      @ColorCodeio  6 месяцев назад

      I think that’s a great suggestion

  • @francesko1763
    @francesko1763 7 месяцев назад +2

    ColorCode is alive!!

  • @karthiktalam
    @karthiktalam 7 месяцев назад

    You are awesome dude. With playback speed 1.75x, ur voice is crystal clear and completed the video in around 25 mins😆

  • @maremare281
    @maremare281 5 месяцев назад +1

    Sina nice job 😎 💥🤘🙌 like it a lot :)

  • @solide_ahmed7907
    @solide_ahmed7907 7 месяцев назад +1

    geat video really enjoyed it !!

  • @beinyourguard
    @beinyourguard 7 месяцев назад +1

    happy for your lessons and congrats on your marriage!

  • @sujith.m.s4041
    @sujith.m.s4041 7 месяцев назад +1

    Hope your lifes going good, love ur content btw

  • @6.squash.936
    @6.squash.936 7 месяцев назад +1

    Return of the King

  • @mrlunatic2022
    @mrlunatic2022 7 месяцев назад +1

    Finally 😭😭, your back sir ...

  • @saferforenvironment5850
    @saferforenvironment5850 7 месяцев назад +1

    Thankyou for this video
    Love from nepal 🇳🇵
    Keep shining keep sharing 😊
    Ps: You have got a subscriber 🎉

  • @user-mw5bm2xh9x
    @user-mw5bm2xh9x 7 месяцев назад +1

    thanks for the lesson

  • @prachimagdum9213
    @prachimagdum9213 2 месяца назад

    Please make a playlist for beginners javascript.... U are a great teacher and want to learn more.. From u Thanku for this playlist ❤

  • @AnupKumar-td9fw
    @AnupKumar-td9fw 7 месяцев назад +1

    The only one word after watching ---
    Amazing ❤❤

  • @jimmyhou3729
    @jimmyhou3729 7 месяцев назад +1

    wow you are back

  • @hanshochbaum4335
    @hanshochbaum4335 7 месяцев назад

    I do have a question for you.
    When removing elements from the HTML-Markup what is the best practice for doing this?
    Example 1:
    let tHeadTag = document.getElementById("table_header");
    while (tHeadTag.hasChildNodes()) {
    tHeadTag.removeChild(tHeadTag.firstChild);
    }
    or
    Example 2:
    let tHeadTag = document.getElementById("table_header");
    tHeadTag.innerHTML = '';

  • @joyguy_
    @joyguy_ 5 месяцев назад +1

    Finally back

  • @SwaggerUi
    @SwaggerUi 7 месяцев назад +1

    Congrats 🎉🎉

  • @capybara0612
    @capybara0612 7 месяцев назад +1

    Welcome back

  • @jaafarassaf9986
    @jaafarassaf9986 4 месяца назад

    Really great videos enjoying them so far, Thank you :) ! If I may ask how is the button triggered onsubmit if it does not have a submit role ?

  • @hossainehsani5696
    @hossainehsani5696 6 месяцев назад +1

    I can't wait for the day when you have React courses somewhere. I would kill for it.

  • @xkabuto
    @xkabuto 6 месяцев назад +1

    This guy's drip is so outstanding that it makes me pay absolute attention to the video even when it's just him taking a break to drink water

    • @ColorCodeio
      @ColorCodeio  6 месяцев назад +1

      I’m not cool enough to know what drip means but thank you :)

  • @WebSurfingIsMyPastime
    @WebSurfingIsMyPastime Месяц назад +1

    liked, commented, subscribed!

  • @dennisbunarta1190
    @dennisbunarta1190 7 месяцев назад +1

    Finally!!!!

  • @xviewmytubex
    @xviewmytubex 2 месяца назад

    Learning from your video! You got merch? =)

  • @AugustineGodwin-oj4yu
    @AugustineGodwin-oj4yu 5 месяцев назад +2

    I have never understood any programmer
    Like the way i understood ur tutorials i will be happy if you can do a tutorial on destruction operator and related

  • @wasimrafik3535
    @wasimrafik3535 7 месяцев назад

    after 7 months waited for a very long and I hope you complete this series soon next episode will not take another 7 months to appear

    • @wasimrafik3535
      @wasimrafik3535 7 месяцев назад

      the above comment was before watching your complete video so excuses

  • @valenciawalker6498
    @valenciawalker6498 2 месяца назад +1

    Thank you!

  • @isaccosta1744
    @isaccosta1744 4 месяца назад

    come back, please! Hug from Brazil

  • @kooroshirani
    @kooroshirani 7 месяцев назад

    درود برشما با این ویدیو های با کیفیت و خوبتون یه سوال بنظر شما بنده اگر ازفرانت اند به ماشین لرنینگ و دیتا ساینس سوییچ کنم آینده کاری بهتری داره ؟ لطف میکنید پاسخ بدید

  • @malavipande6693
    @malavipande6693 7 месяцев назад

    Bose is back 🤠

  • @ayyubs_mind
    @ayyubs_mind 7 месяцев назад +1

    Thank you bro. I find job with your help 😢

  • @idprompt
    @idprompt 6 месяцев назад +1

    ¿Does the picture on your wall is the album cover "The best of sade"?

  • @mahtabvariyani
    @mahtabvariyani 6 месяцев назад +1

    Thanks for the videos AND 😁
    You still don't have any videos about hoisting in JavaScript (as i watched them all). Could you consider making your next video about it?

  • @rmrtamiltechnology
    @rmrtamiltechnology 7 месяцев назад +1

    Thank you sir

    • @ColorCodeio
      @ColorCodeio  7 месяцев назад

      You're welcome

    • @rmrtamiltechnology
      @rmrtamiltechnology 7 месяцев назад

      @@ColorCodeio sir, how can i get javascript mastery course from colorcode ?

  • @jayteecollins1279
    @jayteecollins1279 4 месяца назад

    your videos are really so good! i just subscribed yesterday 😀 may i know how you inserted cucumber icon in console?

  • @WaliaIbex
    @WaliaIbex 7 месяцев назад

    Awesome guy where are the remaining 5 ?😊

  • @ShivamSharma-dq4pu
    @ShivamSharma-dq4pu 7 месяцев назад

    I love you man

  • @yendys74
    @yendys74 7 месяцев назад

    Lovely

  • @kazikmajster5650
    @kazikmajster5650 7 месяцев назад +1

    Why do you work with the console? I want to use it for my file and now I am confused.

  • @shady5063
    @shady5063 5 месяцев назад +1

    When you have the time, can you show us how you setup your IDE the background color and design. Is that the browser being open in the terminal ?
    Pls make a video showing us how to get that nice looking IDE.

    • @ColorCodeio
      @ColorCodeio  4 месяца назад

      It's called RunJS: runjs.app/colorcode

  • @shameer9680
    @shameer9680 7 месяцев назад

    Thanks for this.
    Really great content.
    Btw what is kabab case 👼 (33:04)

  • @nicolasseydoux5985
    @nicolasseydoux5985 7 месяцев назад +1

    Around 21 minutes , one thing you show unvoluntarily, is that you can put multiple same events on a same div . your wrote the event 'click' with a console.log . Your seemed to rewrite that click event with the nicely todo list working . testing it trigger what supposed to happen - copy the input text, putting it in the list, but also... the console.log !! . To summarize, you created 2 'clicks' events ! .

  • @user-es2vr3cv1v
    @user-es2vr3cv1v 6 месяцев назад

    ❤ can you make a video about Event loop and browser api, call stack and callback queue ( also interesting to know how it works )

  • @TicTacTechYT
    @TicTacTechYT 4 месяца назад

    MAKE MOre videos. We miss you

  • @undergraduate6050
    @undergraduate6050 7 месяцев назад

    How's it inefficient with memory management?

  • @ayyubs_mind
    @ayyubs_mind 7 месяцев назад +1

    Wooooww🎉🎉🎉🎉

  • @erensametkaratas6593
    @erensametkaratas6593 7 месяцев назад +1

    WOW. Are we back?!?!

  • @user-cy8yt3uu2y
    @user-cy8yt3uu2y 5 месяцев назад +1

    Video Video.. 🎞
    We wanttttttt,. more more.. Video 🎞🎞
    Love YoU ❤

  • @NextGenAchieverss
    @NextGenAchieverss 7 месяцев назад +1

    i was thinking you stop making videos bcz your video views are underrated

    • @ColorCodeio
      @ColorCodeio  7 месяцев назад +1

      Hell no! Every view matters 🙏