codedamn

Create elements dynamically with JavaScript

Created by Codedamn about a year ago

0

No description provided

14 Comments

    0

    I got lost on this one when you get to appending bold to the li's

    @sent1nel101

    Darec McDaniel

    @sent1nel101

    0

    This content was deleted by the author

    @anjanisriya

    Anjani Sriya

    @anjanisriya

    1

    confusing explanation

    @piyushgupta53

    Piyush Gupta

    @piyushgupta53

    2

    added a decrementer, code as follows: function decrementfunc(){ if(counter > 0){ counter-- ulEl.removeChild(ulEl.lastChild); } counterEl.innerText = counter }

    @jinxonion

    Jinay Gada

    @jinxonion

    0

    programming is all about practice, it will make perfect nice one mehul

    @chineduwali77

    Chinedu Wali

    @chineduwali77

    0

    :}<

    @sujithcodes13

    Sujith V S

    @sujithcodes13

    1

    bhai confusing hai

    @dantehaxor

    Abhay Singh

    @dantehaxor

    3

    super confusing explanation, it seems he just keeps talking to himself ...

    @vitamine007

    Bahodir AHROROV

    @vitamine007

    2

    Nice Explanation but it was a little confusing.

    2

    I liked this chapter

    @ibrahmounk

    Ibrahima MOUNKORO

    @ibrahmounk

    1

    For decrement; function decrementCounter() { const counterEl = document.getElementById('counter'); counter--; counterEl.innerText = counter;

    const lastli = ulElement.lastChild;
    
    ulElement.removeChild(lastli);
    

    }

    @ps4atom

    Pranav Singh

    @ps4atom

    0

    Nice

    @teja24

    Teja Inaganti

    @teja24

    0

    Confused Need Simpler Explanation,Lost in this Mehul

    @devbroishere

    Aadarsh Anilkumar

    @devbroishere

    0

    I coped the whole code from here to my playground but every time I click on button it's showing " cannot read properties of null (reading appendchild)"......How to solve it???

    @shardul6996

    Shardul Puri

    @shardul6996

Your comment