In this task, students will:
- Create a function that takes two numbers as parameters and returns the sum.
- Create an arrow function that prints a greeting message.
- Experiment with global vs. local scope by defining variables inside and outside functions.
Assignment/
│── index.js # Students write their code here
- ✅ Students write their code in
Assignment/index.js
. - ✅ Test cases in
index.test.js
verify correctness. - ✅ GitHub Actions (
tests.yml
) automatically runs tests when students push their code. - ✅ If all tests pass, the submission is valid.
- Do NOT modify any other files except
Assignment/index.js
. - Ensure tests pass before submitting.
- Push the code to GitHub Classroom.
This solution is correct, fully tested, and ready for students! Let me know if you need modifications. 🚀🔥