The JavaScript DOM explained in 5 minutes! 🌳

Поделиться
HTML-код
  • Опубликовано: 4 дек 2023
  • #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.

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

  • @BroCodez
    @BroCodez  6 месяцев назад +20

    // 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 6 месяцев назад

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

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

      bro make ai video

  • @kenkioqqo
    @kenkioqqo 2 месяца назад +10

    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.

  • @Yuvraj_makwana_
    @Yuvraj_makwana_ 6 месяцев назад +11

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

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

    Thank you so so so much

  • @thejoker-
    @thejoker- 6 месяцев назад +4

    Alot support for you bro❤

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

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

  • @itsshafayat6378
    @itsshafayat6378 7 дней назад

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

  • @ok_e3w
    @ok_e3w 3 месяца назад +2

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

    • @l-fitness3590
      @l-fitness3590 3 месяца назад

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

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

    please keep doing what you're doing bro🙏🏻

  • @AhmedRaza-ty7zq
    @AhmedRaza-ty7zq 3 месяца назад +1

    Awesome video😎😎👍👍

  • @Tech-Dev
    @Tech-Dev Месяц назад

    Cheers for this tutorial.

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

    Great video !

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

    All I can say is _Understandable and have a good day_

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

    Thank you

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

    Thank you sir

  • @chathuraranasingha4942
    @chathuraranasingha4942 День назад

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

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

    Surprise Surprise mfs the King is back👑

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

    CHAD! Chanel 🍷🗿

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

    zguba!

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

    W

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

    fru