Batch 17 – JavaScript & Node.
js Assignment
Objective
This assignment is designed to strengthen JavaScript fundamentals using [Link]. Students will practice
variables, arrays, objects, conditions, loops, and functions step by step.
Setup Instructions
1. Install [Link] (LTS Version)
2. Install Visual Studio Code
3. Verify installation using:
node -v and npm -v
4. Create one GitHub repository named batch-17-javascript-assignment
5. Create a separate file or folder for each exercise
Assignment Exercises
1. Personal Message – Print a greeting message using a variable.
2. Name Cases – Print a name in lowercase, uppercase, and title case.
3. Famous Quote – Print a quote with the author’s name.
4. Famous Quote (Variables) – Store author and message in variables.
5. Stripping Names – Use \n and \t and trim whitespace.
6. Number Eight – Perform operations that result in 8.
7. Favorite Number – Print your favorite number using a variable.
8. Adding Comments – Add comments to two programs.
9. Names Array – Store and print friends’ names.
10. Greetings – Print personalized messages.
11. Transportation – Print statements using a vehicle array.
12. Guest List – Invite guests to dinner.
13. Changing Guest List – Replace one guest.
14. More Guests – Add guests at beginning, middle, end.
15. Shrinking Guest List – Invite only two guests.
16. Seeing the World – Sort and reverse arrays.
17. Dinner Guests – Print number of invited guests.
18. Arrays Practice – Store any list of items.
19. Objects Practice – Store items in JavaScript objects.
20. Intentional Error – Create and fix an array index error.
21. Conditional Tests – Write true/false comparisons.
22. More Conditionals – Strings, numbers, AND/OR, arrays.
23. Alien Colors – Use if-else logic.
24. Stages of Life – Determine age group.
25. Favorite Fruits – Check items in an array.
26. Hello Admin – Print admin and user greetings.
27. No Users – Handle empty arrays.
28. Checking Usernames – Ensure unique usernames.
29. Ordinal Numbers – Print 1st–9th ordinals.
30. Pizzas – Print pizza preferences.
31. Animals – Print animals with common traits.
32. T-Shirt – Create make_shirt() function.
33. Large Shirts – Default parameters.
34. Cities – Describe cities with default country.
35. City Names – Return formatted city-country string.
36. Album – Create music album objects.
37. Magicians – Print magician names.
38. Great Magicians – Modify magician names.
39. Unchanged Magicians – Keep original array safe.
40. Sandwiches – Accept variable arguments.
41. Cars – Store car details using objects.
Submission Rules
• All exercises must be pushed to a single GitHub repository
• Use clear file/folder names
• Proper comments are required
• Submit the GitHub repository URL
Grading Criteria
• Correct logic & output
• Clean and readable code
• Proper use of JavaScript concepts
• GitHub organization
Batch: 17
Subject: JavaScript & [Link] Fundamentals