JavaScript Real-Life Projects for Practice
🟢 Beginner Level JavaScript Projects
1. Create a program to swap two numbers using a temporary variable.
2. Create a program to check whether a number is even or odd.
3. Create a program to find the maximum of three numbers using conditionals.
4. Create a program to convert temperature from Celsius to Fahrenheit.
5. Create a program to reverse a string using loops.
6. Create a program to count the number of vowels in a given string.
7. Create a program to check if a number is a multiple of 3 or 5.
8. Create a program to calculate the factorial of a number using a loop.
9. Create a program to print the multiplication table of a number using a loop.
10. Create a function that takes a name and age as input and prints a formatted string like:
"Hello, my name is John and I am 21 years old."
🟡 Intermediate Level JavaScript Projects
1. Create a program to check whether a given string is a palindrome.
2. Create a function to count the number of words in a sentence.
3. Create a program to find the largest word in a string.
4. Create a program to remove all vowels from a string.
5. Create a function to find the sum of all digits in a number.
6. Create a program to generate a random password of given length using loops and strings.
7. Create a function that returns the number of times a character appears in a string.
8. Create a program to check whether a year is a leap year or not.
9. Create a program to validate a simple email format using string methods.
10. Create a function that takes a number and returns true if it's prime.
🔴 Advanced Level JavaScript Projects
1. Create a program to simulate a simple ATM withdrawal system using functions and
conditionals.
2. Create a function to convert a sentence into title case.
3. Create a function to simulate a basic login system with a stored username and password.
4. Create a program to simulate a digital clock using time format in strings (no Date object).
5. Create a function that returns the Fibonacci sequence up to `n` terms.
6. Create a function to find the longest substring without repeating characters.
7. Create a function that returns the character that appears most frequently in a string.
8. Create a program to simulate a grading system using marks and conditionals.
9. Create a function that formats a phone number from 1234567890 to (123) 456-7890.
10. Create a function that evaluates a math expression like "2 + 3 * 4 - 1" (without using
eval()).