From 55ecde85ca6f04a530b58c1870bde06f99e9fcb8 Mon Sep 17 00:00:00 2001 From: rupeshbangar Date: Tue, 17 Feb 2026 23:25:46 +0530 Subject: [PATCH] Add Week-01 and Week-02 content --- Week-03/Day_01/index.html | 11 +++++++++++ Week-03/Day_01/script.js | 28 ++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 Week-03/Day_01/index.html create mode 100644 Week-03/Day_01/script.js diff --git a/Week-03/Day_01/index.html b/Week-03/Day_01/index.html new file mode 100644 index 0000000..5c92a67 --- /dev/null +++ b/Week-03/Day_01/index.html @@ -0,0 +1,11 @@ + + + + + + Document + + + + + \ No newline at end of file diff --git a/Week-03/Day_01/script.js b/Week-03/Day_01/script.js new file mode 100644 index 0000000..bf84fea --- /dev/null +++ b/Week-03/Day_01/script.js @@ -0,0 +1,28 @@ +const internProfile = { + firstName: "Rupesh", + role: "Web Development Intern", + tasksCompleted: 5, + + updateTasks() { + this.tasksCompleted++; + return `Task Update:\n${this.firstName} has completed a new task!\nTotal Tasks: ${this.tasksCompleted}`; + } +}; + +const getWelcomeMessage = (name, role) => { + return `Welcome to the Dashboard!\nName: ${name}\nRole: ${role}`; +}; + +const checkGoal = (completed, goal = 10) => { + const remaining = goal - completed; + return `Progress Report:\nCompleted: ${completed}\nTarget: ${goal}\nRemaining: ${remaining} tasks to reach goal.`; +}; + +const welcome = getWelcomeMessage(internProfile.firstName, internProfile.role); +alert(welcome); + +const updateStatus = internProfile.updateTasks(); +alert(updateStatus); + +const progress = checkGoal(internProfile.tasksCompleted); +alert(progress); \ No newline at end of file