How to make a correspondence between the serial number of the list and its text inside?

  • 0
    Good afternoon, there is such a problem, I could not solve it.
    In general, there is a list and a button.
    <ol class="spisok">
           <li>Text</li>
           <li>Text</li>
           <li>Text</li>
     </ol>
    <button class="button">click me</button>

    Task: when adding new items to the list (starting from 4), the text in them corresponds to the ordinal number (fourth, fifth, sixth), help to do at least up to the eighth point, in order to understand how it works.
    JavaScript Easton McGrath, Aug 9, 2020

  • 2 Answers
  • 0
    Or so
    Anonymous

  • 0
    have fun

    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!