⊗jsPmPrLC 466 of 504 menu

Practice on creating ul lists in JavaScript

Given an ul:

<ul id="elem"></ul>

Given an array. Insert the elements of this array at the end of ul so that each element is in its own li.

Modify the previous task so that when you click on any of the inserted elements, the text of this element is displayed on the screen.

Modify the previous task so that clicking on a li adds '!' to its end.

Modify the previous task so that pressing the li again doesn't add a second '!'.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline