JavaScript Assignment No. 12

This JavaScript assignment involved building a fully functional TO-DO application using loops and DOM manipulation. I applied `for` loops to render task items, and integrated event handling to add, edit, and delete to-dos dynamically. Through this project, I deepened my understanding of how JavaScript can interact with HTML elements to create responsive, interactive user interfaces.

Task 1. Use map() to double each number in the array

Output:

Task 2. Use map() to convert an array of strings to uppercase

Output:

Task 3. Use map() to extract the names from an array of objects

Output:

Task 4. Use map() to return the length of each word in the array

Output:

Task 5. Use map() to add a suffix -done to each task in an array

Output:

Task 6. Use map() to square each number in an array

Output:

Task 7. Use map() to convert an array of prices to strings with a $ sign

Output:

Task 8. Use map() to format an array of dates into readable strings

Output:

Task 9. Use map() to create an array of booleans indicating if each number is even

Output:

Task 10. Use map() to append the index to each string in an array

Output:

Task 11. Use filter() to keep only the even numbers

Output:

Task 12. Use filter() to remove all negative numbers from an array

Output:

Task 13. Use filter() to get names longer than 4 characters

Output:

Task 14. Use filter() to find all users who are active

Output:

Task 15. Use filter() to get all words starting with the letter "a"

Output:

Task 16. Use filter() to keep only numbers greater than 10.

Output:

Task 17. Use filter() to remove all falsy values from an array

Output:

Task 18. Use filter() to get strings that include the word "code"

Output:

Task 19. Use filter() to exclude null or undefined values

Output:

Task 20. Use filter() to return products with price less than 100

Output:

Task 21. Use reduce() to sum all numbers in an array

Output:

Task 22. Use reduce() to find the maximum number in an array

Output:

Task 23. Use reduce() to count how many times each element appears

Output: