Generating elements and Text node in DOM

Поділитися
Вставка
  • Опубліковано 4 лис 2024

КОМЕНТАРІ • 68

  • @HiteshCodeLab
    @HiteshCodeLab  4 роки тому +3

    Full course is FREE and will be available here
    courses.learncodeonline.in/learn/Complete-Javascript-course

  • @puneetsingh3524
    @puneetsingh3524 3 роки тому +3

    literally i d'ont have words to express my feelings before going through your series, i hated programming but now i guess i am loving it so much

  • @saibhanumathurthi903
    @saibhanumathurthi903 4 роки тому +8

    Sir, you are the most impactful guru for the students like me.. grateful

  • @nathanielfrema
    @nathanielfrema 4 роки тому +5

    Thank you, sir. I am very grateful for this knowledge you always share. Watching from Ghana

  • @aarushgoyal
    @aarushgoyal 4 роки тому +8

    HItesh Sir teaches so amazingly

  • @EditorGuru
    @EditorGuru 3 роки тому +1

    Sir I have completed the assignment and it is working perfectly fine. Thank you so much for this amazing course for free. I learnt so much from this course ...

  • @exinangai2216
    @exinangai2216 4 роки тому +1

    Another most anticipated episode of Hitesh's javascript tuts 😀. This Node gen capability adds more elements at web designers’ discretion, allowing dynamic modification of web components/insertion of script snippets on any plain (i.e. boring, static, vanilla) html page. Remind me on the old days of .dhtml. Nice explanation, Sir Hitesh. 😃

  • @neerajsinghtangariya2587
    @neerajsinghtangariya2587 4 роки тому +2

    Assignment done :)
    js => descending order
    const button2 = document.querySelector(".sort-btn2");
    button2.addEventListener("click", () => {
    courses.sort((a, b) => b.price - a.price);
    generateLIST();
    });
    html

    Descending Sort

  • @PrudhviRajRaavi
    @PrudhviRajRaavi 4 роки тому +4

    Keep Growing and keep inspiring. Thank you for this

  • @theaswinantony
    @theaswinantony 4 роки тому

    I don’t understand why people do thumps down for quality videos. It’s a free world but I think sometimes people are, you know (no words)

  • @shubhamseth3557
    @shubhamseth3557 4 роки тому

    I already knew how to do all that , I was just watching this video to pass my time , UNTIL that HTML started regenerating itself. That small HACK was so good , Thankyou Sir ✅

  • @Ravi-oh8xz
    @Ravi-oh8xz Рік тому

    Top- NOTCH video,,literrally one in million ❤️❤️🔥

  • @venzkie89
    @venzkie89 4 роки тому

    Very well explained! I used to watch your videos and I already applied of what I have learned from it to my current ERP project. Keep up the good work sir :) Watching from Philippines.

  • @shivamguglani231
    @shivamguglani231 4 роки тому +1

    Best video of the course so far🤩🤩

  • @ashutoshaman5649
    @ashutoshaman5649 3 роки тому +2

    I missed a . before class name and it wasted my whole 2 hours. That's the reason I hate JavaScript. But before this course I used to hate it even more. Heartly thanks hitesh.

    • @EditorGuru
      @EditorGuru 3 роки тому +2

      Thank you so much brother....because of your comment I find my mistake and saved 2 hours :)

    • @ashutoshaman5649
      @ashutoshaman5649 3 роки тому

      @@EditorGuru Error is always better than these...

  • @jaysood3709
    @jaysood3709 4 роки тому

    The best explanation i ever got thankyou so much

  • @sivasai6890
    @sivasai6890 4 роки тому +1

    I hit the like button rather than hitting subscriber button. Bcoz I subscribed already.. ❤

  • @bhavesh2952
    @bhavesh2952 3 роки тому

    Very useful video. Thank you, Hitesh :)

  • @dakshamdev
    @dakshamdev 4 роки тому +2

    Wating for this one
    Thanks Sir

  • @TheMayankkhare92
    @TheMayankkhare92 3 роки тому +1

    While going through this video I found that the script tag has to be at the bottom else the document.querySelector doesn't grab the ul element either by the class or element name.
    Took half an hour to understand my silly mistake.

  • @yoyocr2034
    @yoyocr2034 3 роки тому

    a little bit confusing but very understandable, thank you, sir..

  • @yuvraj6279
    @yuvraj6279 2 роки тому

    Thank you soo much for this :)

  • @vijay1576
    @vijay1576 4 роки тому +1

    Hey guys,
    I could make it by ascending & descending list & button color blue. However it is apearing down below the existing button. How to make it inline? tried in CSS also
    IN HTML
    Sort courses ascending


    Sort courses descending
    in JS
    const button1 = document.querySelector(".sort-btn1")
    // button1.style.display = "inline"
    button1.addEventListener("click", () => {
    courses.sort ( (a,b) => a.price - b.price )
    generateList();
    });
    const button2 = document.querySelector(".sort-btn2")
    button2.style.backgroundColor = "blue"
    // button2.style.display = "inline"
    button2.addEventListener("click", () => {
    courses.sort ( (a,b) => b.price - a.price )
    generateList();
    });
    in CSS
    body {
    background-color: rgb(66, 66, 66);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    }
    .btn btn-success btn-lg mt-4 mx-auto d-block sort-btn1 {
    float: inline-start;
    }
    .btn btn-success btn-lg mt-4 mx-auto d-block sort-btn2 {

    float: inline-end;
    }

  • @ajayrabari433
    @ajayrabari433 4 роки тому

    Thanks for this video sir.

  • @afflictionmarketing5303
    @afflictionmarketing5303 4 роки тому

    Great explanation. 👌

  • @Vishalkumarwish
    @Vishalkumarwish 4 роки тому

    Hitesh sir i knew nothing about js
    Only i have completed my html css and php then i started watching ur this series.
    Can i dig in to react after this series.
    Your reply will be valuable for me🙌

    • @TopTalentBridgecanada
      @TopTalentBridgecanada 4 роки тому

      Yes go for it !! after that you can get frontend developer job and learn full stack side by side

    • @arunhembram1859
      @arunhembram1859 3 роки тому

      Go for asynchronous javascript then NODE .JS then Touch react.

  • @kms8320
    @kms8320 Рік тому

    🔥🔥🔥🔥🔥

  • @satendrasingh-dt9fj
    @satendrasingh-dt9fj 4 роки тому

    Great ....I love it

  • @saurabhbatham5183
    @saurabhbatham5183 2 роки тому

    assignment is done but unable to bring these two buttons in same line. both sorting button working fine.

  • @TigranKheranyan-c1s
    @TigranKheranyan-c1s 3 роки тому

    Why do you write price of a course in a string?

  • @Ghoomte_Jaa
    @Ghoomte_Jaa 4 роки тому

    Sir plz make a video on MEAN ....thanku

  • @YouAndImpact
    @YouAndImpact 4 роки тому

    Great video 👍

  • @CD-xd6fm
    @CD-xd6fm 2 роки тому

    I did everything exactly same , its even showing up on the web but its not sorting...can anyone help me?

  • @kuldeepmeena5614
    @kuldeepmeena5614 2 роки тому

    where is the project which you used in the video

  • @rajansood964
    @rajansood964 4 роки тому

    You are awesome

  • @sachinpandey816
    @sachinpandey816 2 роки тому

    thanks sir just I feel like I am coding JSX

  • @vivekrk5946
    @vivekrk5946 4 роки тому

    Sir you did ul.innerHTML = ""
    But it will not include hard coded one which was in index.html i.e javascript course...
    So how to include it in output sir.

    • @zizou5638
      @zizou5638 3 роки тому

      const exsistingItem = "Javascript course$2.1";
      ul.innerHTML = exsistingItem;

  • @techno_abhishek8982
    @techno_abhishek8982 4 роки тому

    Which vscode theme you are using?

  • @mayurkeswani2312
    @mayurkeswani2312 4 роки тому

    Great👍👍🙏

  • @nathanielfrema
    @nathanielfrema 4 роки тому +1

    Please I need help, can you get me a video on how to add AdMob ads to the android app in android studio and upload to play store?

  • @rudra844
    @rudra844 4 роки тому

    Thanks Sir ❤🌹

  • @kbcoder3734
    @kbcoder3734 4 роки тому

    Thank you ☺️

  • @havishyamyneni1033
    @havishyamyneni1033 3 роки тому

    can u show the programme in script but not in console.log.show it on webpage.plz

  • @vijayaramp2341
    @vijayaramp2341 3 роки тому

    Sir the code doesn't run and says document isn't defined

  • @Sahilblogs536
    @Sahilblogs536 4 роки тому

    Hello sir when you will start the course of react js and django

  • @anshuldakshprajapati170
    @anshuldakshprajapati170 4 роки тому

    Can u please explain the purpose of using the classList to add the class . I means please elaborate more on classList.

    • @zizou5638
      @zizou5638 3 роки тому

      In case you wanted the newly added items to have the same properties as the existing list.

    • @sonalisahoo5953
      @sonalisahoo5953 2 роки тому

      @@zizou5638 Can u also pls tell me how (a.price - b.price) sorts the objects?
      I mean what does b hold when a holds first object? Can u explain it in a flow of execution pls?
      thnx in advance :)

    • @zizou5638
      @zizou5638 2 роки тому +1

      @@sonalisahoo5953 do u have a twitter or Facebook account so i can share the picture of the explanation to u

  • @yomziiblack3776
    @yomziiblack3776 4 роки тому

    Please your mobile app has been refusing payment acceptance for a while now. Please look into it

  • @-sasidharreddy
    @-sasidharreddy Рік тому

    where i will find this project file

  • @vraj3115
    @vraj3115 4 роки тому

    #10minutesJS day 45!

  • @EAGEEYE321
    @EAGEEYE321 4 роки тому

    MY BRIAN CRASHED HERE

  • @pushkarc2049
    @pushkarc2049 4 роки тому

    sir do you watch ipl

  • @Vishalkumarwish
    @Vishalkumarwish 4 роки тому

    Is there anyone who had completed the assignment of this video .
    I can't make that in descending order (courses)
    Plz anyone help me out.🙌

    • @arunhembram1859
      @arunhembram1859 3 роки тому

      courses.sort((a, b) => b.price - a.price);

  • @anshagrawal9751
    @anshagrawal9751 3 роки тому

    1:01

  • @pravingupta5015
    @pravingupta5015 3 роки тому

    Bhai aap faltu ki baatein nahi karte ho or time bhi save karte ho.. Bro 🙂