The JavaScript DOM explained in 5 minutes! 🌳

Поділитися
Вставка
  • Опубліковано 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.

КОМЕНТАРІ • 30

  • @BroCodez
    @BroCodez  8 місяців тому +24

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

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

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

      bro make ai video

  • @kenkioqqo
    @kenkioqqo 4 місяці тому +16

    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.

  • @Ryan-mk6ch
    @Ryan-mk6ch 5 днів тому

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

  • @AnalPro_69
    @AnalPro_69 8 місяців тому +12

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

  • @ok_e3w
    @ok_e3w 5 місяців тому +3

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

    • @l-fitness3590
      @l-fitness3590 5 місяців тому +1

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

  • @thejoker-
    @thejoker- 8 місяців тому +5

    Alot support for you bro❤

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

    Thank you so so so much

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

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

  • @Tech-Dev
    @Tech-Dev 3 місяці тому

    Cheers for this tutorial.

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

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

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

    please keep doing what you're doing bro🙏🏻

  • @AhmedRaza-ty7zq
    @AhmedRaza-ty7zq 5 місяців тому +1

    Awesome video😎😎👍👍

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

    Great video !

  • @uxus-oh3qk
    @uxus-oh3qk Місяць тому

    Best explanation...ever.

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

    All I can say is _Understandable and have a good day_

  • @user-ti1iy3mj6e
    @user-ti1iy3mj6e 23 дні тому

    Nice tutorial

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

    Thank you

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

    Thank you sir

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

    CHAD! Chanel 🍷🗿

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

    Surprise Surprise mfs the King is back👑

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

    zguba!

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

    W

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

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

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

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

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

    fru

  • @sangeethasancharaya6870
    @sangeethasancharaya6870 28 днів тому

    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 8 днів тому

      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.