اÛÙ Ù
ØØªÙا تÙÙØ§ در اÛ٠زباÙâÙØ§ Ù
ÙØ¬Ùد است: English, Español, Français, Italiano, æ¥æ¬èª, íêµì´, Ð ÑÑÑкий, Türkçe, УкÑаÑнÑÑка, OÊ»zbek, ç®ä½ä¸æ. ÙØ·Ùا٠ب٠Ù
ا
Create a list
اÙÙ
ÛØª: 4
Write an interface to create a list from user input.
For every list item:
- Ask a user about its content using
prompt. - Create the
<li>with it and add it to<ul>. - Continue until the user cancels the input (by pressing Esc or via an empty entry).
All elements should be created dynamically.
If a user types HTML-tags, they should be treated like a text.
Please note the usage of textContent to assign the <li> content.