DOM API - JavaScript Tutorial for beginners

Поділитися
Вставка
  • Опубліковано 22 чер 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
  • Наука та технологія

КОМЕНТАРІ • 218

  • @bmehder
    @bmehder 8 місяців тому +29

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

    • @ColorCodeio
      @ColorCodeio  8 місяців тому +1

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

  • @garymathe9863
    @garymathe9863 3 місяці тому +4

    This guy is criminally undersubscribed.

  • @mohammadabbas1623
    @mohammadabbas1623 8 місяців тому +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  6 місяців тому

      Hell yeah! More vids coming soon

  • @ColorCodeio
    @ColorCodeio  8 місяців тому +11

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

  • @nancychaudhry3623
    @nancychaudhry3623 8 місяців тому +2

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

    • @ColorCodeio
      @ColorCodeio  8 місяців тому

      Thank you! Good to be back.

  • @ciprianparaschiv7591
    @ciprianparaschiv7591 8 місяців тому +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!

  • @iambestin
    @iambestin 7 місяців тому +1

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

  • @billymaaa
    @billymaaa 6 місяців тому +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  6 місяців тому +1

      Thanks so much Billy. Made my day.

  • @pzpalasti
    @pzpalasti 8 місяців тому +1

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

  • @zhiend3935
    @zhiend3935 8 місяців тому +2

    Your videos deserves much more than 5k

  • @hanshochbaum4335
    @hanshochbaum4335 8 місяців тому +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

  • @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

  • @12345678uygfcxdrtghn
    @12345678uygfcxdrtghn 8 місяців тому +3

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

  • @jollyren
    @jollyren 8 місяців тому +1

    I'm sooooo happy you made another video

    • @ColorCodeio
      @ColorCodeio  8 місяців тому

      Me too! More coming soon.

  • @web-sd9be
    @web-sd9be 8 місяців тому +3

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

  • @adam29334
    @adam29334 8 місяців тому +1

    good to see you back dude!

  • @user-is8yk4iq7f
    @user-is8yk4iq7f 3 місяці тому +1

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

  • @shonuff4323
    @shonuff4323 8 місяців тому +1

    Love your lessons!

  • @opencode1
    @opencode1 8 місяців тому +2

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

    • @ColorCodeio
      @ColorCodeio  8 місяців тому

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

    • @opencode1
      @opencode1 8 місяців тому

      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

  • @Wakkyguy
    @Wakkyguy 8 місяців тому +1

    Have been missing the fun for a while!

    • @ColorCodeio
      @ColorCodeio  8 місяців тому +1

      Fun is. back!

    • @Wakkyguy
      @Wakkyguy 8 місяців тому

      @@ColorCodeio ♥

  • @keshavakumar9828
    @keshavakumar9828 8 місяців тому +1

    It's good to see you back. UA-cam lacks quality which you give us.

  • @2difficult2do
    @2difficult2do 8 місяців тому +1

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

  • @kamil4351
    @kamil4351 8 місяців тому +1

    nice to see you again :)

  • @dios8256
    @dios8256 7 місяців тому +1

    Some very nice special effects in this video 🤩

  • @javeedakhter324
    @javeedakhter324 8 місяців тому +1

    Was waiting from a long time🎉

  • @shan_arosh
    @shan_arosh 8 місяців тому +1

    glad you're back

  • @aminkhakzad9257
    @aminkhakzad9257 8 місяців тому +1

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

  • @fernandodasilvagomes7905
    @fernandodasilvagomes7905 6 місяців тому +2

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

  • @priyanshuagrawal9204
    @priyanshuagrawal9204 8 місяців тому +1

    Finally after such a long long time 🎉🎉❤❤

  • @mohammadkhakhsoor2068
    @mohammadkhakhsoor2068 8 місяців тому

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

  • @G_Breaker
    @G_Breaker 3 місяці тому

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

  • @haallefs
    @haallefs 6 місяців тому +1

    Thanks for this fantastic content! 😊

    • @ColorCodeio
      @ColorCodeio  6 місяців тому

      Thanks for this fantastic comment

  • @jasvindersingh6915
    @jasvindersingh6915 6 місяців тому +1

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

  • @Nathaniel_Cos
    @Nathaniel_Cos 8 місяців тому +1

    Thanks for useful staff

  • @AlAminKhan03
    @AlAminKhan03 8 місяців тому +1

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

  • @harvard004
    @harvard004 8 місяців тому +1

    Welcome back!!!!

  • @maremare281
    @maremare281 6 місяців тому +1

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

  • @scottldn
    @scottldn 8 місяців тому +1

    Good to see you back 💪

    • @scottldn
      @scottldn 8 місяців тому

      And congratulations 🥂 !

    • @ColorCodeio
      @ColorCodeio  7 місяців тому

      Thank you

  • @anthonytirop1338
    @anthonytirop1338 7 місяців тому +1

    incredible session

  • @francesko1763
    @francesko1763 8 місяців тому +2

    ColorCode is alive!!

  • @hooman_talakian
    @hooman_talakian 7 місяців тому +1

    Amazing Content 🏆

  • @chhavimanichoubey9437
    @chhavimanichoubey9437 8 місяців тому +2

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

  • @federexpotolin6284
    @federexpotolin6284 5 місяців тому

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

  • @SK4-music
    @SK4-music 7 місяців тому +1

    omg this course is just flames 🔥

  • @JeetKRamnani
    @JeetKRamnani 8 місяців тому

    Miss you sir ❤ finally back with Js and humour ❤

  • @carljung2850
    @carljung2850 8 місяців тому +1

    this is freaking great

  • @fasteditsyt
    @fasteditsyt Місяць тому +1

    My brain is so big now! TY

  • @mrlunatic2022
    @mrlunatic2022 8 місяців тому +1

    Finally 😭😭, your back sir ...

  • @user-mw5bm2xh9x
    @user-mw5bm2xh9x 7 місяців тому +1

    thanks for the lesson

  • @Abhinand28
    @Abhinand28 6 днів тому

    In my mind DOM was a very serious thing like Dominic Torreto and I was afraid of it. But now iam using fetch() which needs a good understanding of DOM to update the elements and after watching this Now I know Torreto 💪. Thanks ✌👍

  • @DevlogBill
    @DevlogBill 8 місяців тому

    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 UA-camr "The Coding Train"? You both have somewhat similar styles in teaching and great humor.

    • @ColorCodeio
      @ColorCodeio  7 місяців тому

      No relation, but he's great

  • @solide_ahmed7907
    @solide_ahmed7907 8 місяців тому +1

    geat video really enjoyed it !!

  • @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 ❤

  • @hcw1566
    @hcw1566 8 місяців тому +1

    U R BACK~~!!

  • @saferforenvironment5850
    @saferforenvironment5850 7 місяців тому +1

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

  • @petesampras2611
    @petesampras2611 7 місяців тому +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  7 місяців тому

      I think that’s a great suggestion

  • @6.squash.936
    @6.squash.936 8 місяців тому +1

    Return of the King

  • @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.❤🔥

  • @sujith.m.s4041
    @sujith.m.s4041 8 місяців тому +1

    Hope your lifes going good, love ur content btw

  • @xviewmytubex
    @xviewmytubex 2 місяці тому

    Learning from your video! You got merch? =)

  • @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 ?

  • @beinyourguard
    @beinyourguard 8 місяців тому +1

    happy for your lessons and congrats on your marriage!

  • @capybara0612
    @capybara0612 8 місяців тому +1

    Welcome back

  • @joyguy_
    @joyguy_ 6 місяців тому +1

    Finally back

  • @hossainehsani5696
    @hossainehsani5696 7 місяців тому +1

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

  • @SwaggerUi
    @SwaggerUi 8 місяців тому +1

    Congrats 🎉🎉

  • @AugustineGodwin-oj4yu
    @AugustineGodwin-oj4yu 6 місяців тому +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

  • @WebSurfingIsMyPastime
    @WebSurfingIsMyPastime 2 місяці тому +1

    liked, commented, subscribed!

  • @valenciawalker6498
    @valenciawalker6498 3 місяці тому +1

    Thank you!

  • @karthiktalam
    @karthiktalam 8 місяців тому

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

  • @jimmyhou3729
    @jimmyhou3729 8 місяців тому +1

    wow you are back

  • @AnupKumar-td9fw
    @AnupKumar-td9fw 8 місяців тому +1

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

  • @affanahmed2897
    @affanahmed2897 7 місяців тому

    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!😊🙌

  • @yendys74
    @yendys74 8 місяців тому

    Lovely

  • @jayteecollins1279
    @jayteecollins1279 4 місяці тому

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

  • @malavipande6693
    @malavipande6693 8 місяців тому

    Bose is back 🤠

  • @wasimrafik3535
    @wasimrafik3535 8 місяців тому

    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 8 місяців тому

      the above comment was before watching your complete video so excuses

  • @xkabuto
    @xkabuto 7 місяців тому +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  7 місяців тому +1

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

  • @rmrtamiltechnology
    @rmrtamiltechnology 8 місяців тому +1

    Thank you sir

    • @ColorCodeio
      @ColorCodeio  8 місяців тому

      You're welcome

    • @rmrtamiltechnology
      @rmrtamiltechnology 8 місяців тому

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

  • @dennisbunarta1190
    @dennisbunarta1190 8 місяців тому +1

    Finally!!!!

  • @isaccosta1744
    @isaccosta1744 4 місяці тому

    come back, please! Hug from Brazil

  • @ayyubs_mind
    @ayyubs_mind 8 місяців тому +1

    Thank you bro. I find job with your help 😢

  • @shameer9680
    @shameer9680 8 місяців тому

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

  • @ShivamSharma-dq4pu
    @ShivamSharma-dq4pu 8 місяців тому

    I love you man

  • @WaliaIbex
    @WaliaIbex 8 місяців тому

    Awesome guy where are the remaining 5 ?😊

  • @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  5 місяців тому

      It's called RunJS: runjs.app/colorcode

  • @nicolasseydoux5985
    @nicolasseydoux5985 8 місяців тому +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 ! .

  • @mahtabvariyani
    @mahtabvariyani 7 місяців тому +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?

  • @X82oo781
    @X82oo781 4 місяці тому

    MAKE MOre videos. We miss you

  • @hanshochbaum4335
    @hanshochbaum4335 8 місяців тому

    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 = '';

  • @kooroshirani
    @kooroshirani 8 місяців тому

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

  • @user-es2vr3cv1v
    @user-es2vr3cv1v 7 місяців тому

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

  • @erensametkaratas6593
    @erensametkaratas6593 8 місяців тому +1

    WOW. Are we back?!?!

  • @idprompt
    @idprompt 7 місяців тому +1

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

  • @kazikmajster5650
    @kazikmajster5650 7 місяців тому +1

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

  • @user-cy8yt3uu2y
    @user-cy8yt3uu2y 5 місяців тому +1

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

  • @roysonkewalfernandes3061
    @roysonkewalfernandes3061 8 місяців тому

    can u teach about Javascript Enum ?

  • @undergraduate6050
    @undergraduate6050 8 місяців тому

    How's it inefficient with memory management?