• ARعربي
  • ENEnglish
  • ESEspañol
  • FAفارسی
  • FRFrançais
  • IDIndonesia
  • ITItaliano
  • JA日本語
  • KO한국어
  • RUРусский
  • TRTürkçe
  • UKУкраїнська
  • ZH简体中文

ما قصد داریم این پروژهٔ متن‌باز را در دسترس همهٔ مردم در سرتاسر دنیا قرار دهیم.

به ترجمهٔ محتوای این آموزش به زبان خودتان کمک کنید/a>.

    نقشه آموزش
    اشتراک گذاری
    • آموزش
    • مرورگر: Document، Eventها، رابط‌ها
    • Document
    • Modifying the document
    بازگشت به درس
    این محتوا تنها در این زبان‌ها موجود است: English, Español, Français, Italiano, 日本語, 한국어, Русский, Türkçe, Українська, 简体中文. لطفاً به ما

    Show descendants in a tree

    اهمیت: 5

    There’s a tree organized as nested ul/li.

    Write the code that adds to each <li> the number of its descendants. Skip leaves (nodes without children).

    The result:

    باز کردن یک sandbox برای تمرین.

    To append text to each <li> we can alter the text node data.

    باز کردن راه‌حل درون sandbox.

    • © 2007—2025  Ilya Kantor
    • دربارهٔ پروژه
    • تماس با ما