Skip to content

GDG-BACKEND-NODE-JS-ASSIGNMENTS/js-session-2-task-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📌 Student Task 4: JavaScript Functions & Scope

Task Overview

In this task, students will:

  1. Create a function that takes two numbers as parameters and returns the sum.
  2. Create an arrow function that prints a greeting message.
  3. Experiment with global vs. local scope by defining variables inside and outside functions.

📂 File Structure

Assignment/
│── index.js              # Students write their code here

🚀 How This Works

  1. Students write their code in Assignment/index.js.
  2. Test cases in index.test.js verify correctness.
  3. GitHub Actions (tests.yml) automatically runs tests when students push their code.
  4. If all tests pass, the submission is valid.

📌 Submission Guidelines

  • 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. 🚀🔥

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published