Please help me for this question.display the names of the students whose ages are between 15 – 25. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please help me for this question.display the names of the students whose ages are between 15 – 25.

Write a JavaScript program to input the names and ages of 10 students into the program and display the names of the students whose ages are between 15 – 25.

11th Sep 2021, 3:09 PM
k.fathima Lasna
k.fathima Lasna - avatar
2 Answers
+ 2
U can use for loop to take a input of 10 students To display names between 15-25 u can use if statement
11th Sep 2021, 3:22 PM
Pariket Thakur
Pariket Thakur - avatar
+ 2
Hint: use for loop and if condition
11th Sep 2021, 4:08 PM
Mohd Aadil
Mohd Aadil - avatar