🔹 Basic Level (1–7)
- Create a function that prints
"Hello World". - Create a function that takes a name as input and prints:
👉"Hello, <name>" - Write a function to add two numbers and return the result.
- Create a function to check if a number is even or odd.
- Write a function that returns the square of a number.
- Create a function that converts Celsius to Fahrenheit.
- Write a function that finds the maximum of two numbers.
🔹 Intermediate Level (8–14)
- Create a function to calculate the area of a circle.
- Write a function that counts the number of vowels in a string.
- Create a function that reverses a string.
- Write a function that checks if a number is prime.
- Create a function that takes an array and returns the sum of all elements.
- Write a function that finds the largest number in an array.
- Create a function that calculates factorial of a number.
🔹 Advanced Level (15–20)
- Convert a normal function into an arrow function.
- Write a function with default parameters (e.g., greet user with default name).
- Create a function expression that multiplies two numbers.
- Write a callback function example:
👉 One function should accept another function as argument. - Create a function that filters even numbers from an array.
- Build a mini calculator using functions:
👉 add, subtract, multiply, divide
🚀 for students
👉 Combine everything:
- Take user input
- Use functions
- Display result in HTML
Mini project using functions (calculator app)






