התקדמות שלך
36/47

ג'אווה סקריפט המדריך המלא 2024
מערכים תרגיל מספר 36 מילוי מערכים


בתרגיל ג'אווה סקריפט הבא נלמד איך למלא מערך ריק במספרים

  • a. prompt the user to enter how many elements he wants to create in a new array save as numOfElements.
  • b. write a function fillArray() that generate new array, fill it with random numbers, with the numOfElements the user request.
  • c. Bonus: make sure only ODD numbers can enter the new array.
שאלות
דברו איתי
whatsapp
ווצאפwhatsapp דיסקורדwhatsapp