Ask Question
17 April, 12:24

Write a jа vascript program that uses a function and a loop to print a list of the days of the week. Use jа vascript.

+3
Answers (1)
  1. 17 April, 14:46
    0
    Output:

    The number of days in a week:

    sunday

    monday

    tuesday

    wednesday

    thursday

    friday

    saturday

    Explanation:

    In this program, we create a function days1 (). In this function, we declared an array i. e " week " which will store the list of the days of the week. After that, we iterate the for loop and prints a list of the days of the week.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write a jа vascript program that uses a function and a loop to print a list of the days of the week. Use jа vascript. ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers