In this seventh JavaScript assignment, I focused on mastering loops in JavaScript. I worked with different types of loops, such as `for`, `while`, and `do-while`, to iterate through arrays and perform repetitive tasks efficiently. This assignment enhanced my understanding of how loops can automate processes and significantly reduce code redundancy.
Fruits: ["apple", "banana", "cherry"]
Output:
Colors: ["red", "green", "blue"]
Output:
Numbers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Output:
Output:
Names: ["Ali", "Sara", "Ahmed"]
Output:
Output: Status
Numbers: [5, 10, 15]
Output:
Cities: ["Karachi", "Lahore", "Quetta"]
Output:
Output:
Cities: [45, 22, 89, 100]
Output:
Output: Status
Temperatures: [30, 35, 32, 40]
Output:
Numbers: 1 to 100
Output:
Animals: ["dog", "cat", "bird"]
Output:
Output: Status
Output:
Numbers: [80, 60, 90, 70]
Output:
Output: Status
Fruits: ["Math", "Science", "English"]
Output: