/index.html
حروف النص
  • text.length ← عدد الحروف
  • text[0] ← أول حرف
  • العد من صفر
  • text[text.length - 1] ← آخر حرف
"Basma"
 0 1 2 3 4