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. ππ₯