The JavaScript DOM explained in 5 minutes! 🌳

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024
  • #JavaScript #tutorial #course
    // DOM = DOCUMENT OBJECT MODEL
    // Object{} that represents the page you see in the web browser
    // and provides you with an API to interact with it.
    // Web browser constructs the DOM when it loads an HTML document,
    // and structures all the elements in a tree-like representation.
    // JavaScript can access the DOM to dynamically
    // change the content, structure, and style of a web page.

ความคิดเห็น • 35

  • @BroCodez
    @BroCodez  9 หลายเดือนก่อน +26

    // DOM = DOCUMENT OBJECT MODEL
    // Object{} that represents the page you see in the web browser
    // and provides you with an API to interact with it.
    // Web browser constructs the DOM when it loads an HTML document,
    // and structures all the elements in a tree-like representation.
    // JavaScript can access the DOM to dynamically
    // change the content, structure, and style of a web page.
    console.log(document);
    console.dir(document);
    document.title = "My website";
    document.body.style.backgroundColor = "hsl(0, 0%, 15%)";
    const username = "";
    const welcomeMsg = document.getElementById("welcome-msg");
    welcomeMsg.textContent += username === "" ? `Guest` : username;


    Document

    Welcome

    • @bhigh1983
      @bhigh1983 9 หลายเดือนก่อน

      Your video is good with clear explanations and it's easy for me to understand the code. I love it.

    • @masternobody1896
      @masternobody1896 9 หลายเดือนก่อน

      bro make ai video

  • @kenkioqqo
    @kenkioqqo 6 หลายเดือนก่อน +21

    Bro, this is the first time I've really understood how the DOM works. Thanks for the clear and simple breakdown of such a complex concept.

  • @AnalPro_69
    @AnalPro_69 9 หลายเดือนก่อน +13

    I learnt html and css easily by your videos ❤ now I'm trying to learn js 🙏

  • @user-cm7ww8rn7k
    @user-cm7ww8rn7k วันที่ผ่านมา

    Great explanation. If you made an HTML version and a CSS version of this video, then combine all 3 into a playlist, it'd be a great introduction for anyone looking to code.
    I love the way you break down the stuff and have a simplification at the top. You keep things simple so ppl underdstand rather than copy. Bro Thanks.

  • @ok_e3w
    @ok_e3w 6 หลายเดือนก่อน +3

    crazy good introduction, incredible I watched a 3 hour tutorial and didnt even scratch this, thx again

    • @l-fitness3590
      @l-fitness3590 6 หลายเดือนก่อน +1

      short simple videos are always better because you can just practice and mess around after with the information you learnt

  • @thejoker-
    @thejoker- 9 หลายเดือนก่อน +5

    Alot support for you bro❤

  • @Ryan-mk6ch
    @Ryan-mk6ch หลายเดือนก่อน

    so clear and explanatory!! thank you for this video!!

  • @AmjadGD
    @AmjadGD 9 หลายเดือนก่อน

    Thank you so so so much

  • @uxus-oh3qk
    @uxus-oh3qk 2 หลายเดือนก่อน

    Best explanation...ever.

  • @itsshafayat6378
    @itsshafayat6378 3 หลายเดือนก่อน

    that is such a good explanation
    bro fr knows the bro code

  • @realoogabooga
    @realoogabooga 9 หลายเดือนก่อน +1

    please keep doing what you're doing bro🙏🏻

  • @dustmukhammad
    @dustmukhammad 6 หลายเดือนก่อน

    This is soo clear explanation broooo! Thank you!!!!

  • @AhmedRaza-ty7zq
    @AhmedRaza-ty7zq 7 หลายเดือนก่อน +1

    Awesome video😎😎👍👍

  • @A_curious_chicken
    @A_curious_chicken หลายเดือนก่อน

    Nice tutorial

  • @Tech-Dev
    @Tech-Dev 4 หลายเดือนก่อน

    Cheers for this tutorial.

  • @ikuubi
    @ikuubi 8 หลายเดือนก่อน

    All I can say is _Understandable and have a good day_

  • @nevouxjulie6595
    @nevouxjulie6595 6 หลายเดือนก่อน

    Great video !

  • @GoalDigger-footboll
    @GoalDigger-footboll 17 วันที่ผ่านมา

    for what purpose u use
    : sign use on line .

  • @valenciawalker6498
    @valenciawalker6498 5 หลายเดือนก่อน

    Thank you

  • @kushagrarai7799
    @kushagrarai7799 9 หลายเดือนก่อน +1

    Surprise Surprise mfs the King is back👑

  • @gopalgohel4302
    @gopalgohel4302 9 หลายเดือนก่อน

    Thank you sir

  • @016632
    @016632 18 วันที่ผ่านมา

    i want to hit the mute button how do i use DOM to mute desktop audio???

  • @LeonardMona-g2d
    @LeonardMona-g2d 22 ชั่วโมงที่ผ่านมา

    0281 Alf Motorway

  • @dipereira0123
    @dipereira0123 9 หลายเดือนก่อน

    CHAD! Chanel 🍷🗿

  • @hlahtunthein2830
    @hlahtunthein2830 4 วันที่ผ่านมา

    msg means Uncle Roger , 😂😂 just kidding

  • @tsunningwah3471
    @tsunningwah3471 5 หลายเดือนก่อน

    zguba!

  • @nihongo_
    @nihongo_ 5 หลายเดือนก่อน

    W

  • @chathuraranasingha4942
    @chathuraranasingha4942 3 หลายเดือนก่อน

    0:07 DOM is not a JS object, but it represent the page we see in the browser

    • @danielgilleland5724
      @danielgilleland5724 2 หลายเดือนก่อน +4

      DOM is a JS object _which_ represents the page we see in the browser.

  • @tsunningwah3471
    @tsunningwah3471 5 หลายเดือนก่อน

    fru

  • @sangeethasancharaya6870
    @sangeethasancharaya6870 2 หลายเดือนก่อน

    every time i code document.getelementbyId the console says document is not defined. how could i overcome this problem. im using node.js

    • @Raymond_G
      @Raymond_G หลายเดือนก่อน

      document.getElementById()is displayed on the screen bro and not in the console.
      For the console ,it is
      Console.log() you have to define your element with console to view it in your console.