Ask 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.

+2
Answers (1)
  1. 23 July, 08:21
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers