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