From 25408d1a10b459aa9e1209520fd04664c8bbeaec Mon Sep 17 00:00:00 2001 From: Script Shadow Date: Wed, 1 Apr 2026 21:07:59 +0545 Subject: [PATCH 1/7] message --- Students/kamala/class_task1.js | 41 ++++++++++++++++++++ Students/kamala/{task4.js => class_task2.js} | 0 Students/kamala/learn1.js | 17 ++++++++ Students/kamala/{script.js => learn2.js} | 0 Students/kamala/{scriptt.js => learn3.js} | 0 Students/kamala/learn4.js | 34 ++++++++++++++++ Students/kamala/read.js | 0 Students/kamala/{checkout.js => task1.js} | 0 Students/kamala/task2.js | 17 -------- Students/kamala/task3.js | 41 -------------------- 10 files changed, 92 insertions(+), 58 deletions(-) create mode 100644 Students/kamala/class_task1.js rename Students/kamala/{task4.js => class_task2.js} (100%) create mode 100644 Students/kamala/learn1.js rename Students/kamala/{script.js => learn2.js} (100%) rename Students/kamala/{scriptt.js => learn3.js} (100%) create mode 100644 Students/kamala/learn4.js create mode 100644 Students/kamala/read.js rename Students/kamala/{checkout.js => task1.js} (100%) diff --git a/Students/kamala/class_task1.js b/Students/kamala/class_task1.js new file mode 100644 index 0000000..563d58f --- /dev/null +++ b/Students/kamala/class_task1.js @@ -0,0 +1,41 @@ +// for (let index = 0; index< 9; index++){ +// console.log(index) +// } +// const arrr=[] +// for (let i=0; i<10; i++){ +// arrr.push(i) +// } +// // console.log(arrr) +// // const arrr=[] +// // for (let i=0; i<10; i++){ +// // arrr.push(i) +// // } +// // console.log(arrr) + +// const arr= ["superman", "batman", "wonderwomen","flash"] +// for(let i=arr/length-1;i>=0;i++){ +// console.log(arr[i]) +// } +const array=[{ + name:"Shyam", + age:23, + isLogin:true +},{ + name:"Sita", + age:24, + isLogin:false +}, +{ + name:"Rita", + age:22, + isLogin:true +}, +{ + name:"kamala", + age:19, + isLogin:false +} +] +for(let i=0; i=0;i++){ -// console.log(arr[i]) -// } -const array=[{ - name:"Shyam", - age:23, - isLogin:true -},{ - name:"Sita", - age:24, - isLogin:false -}, -{ - name:"Rita", - age:22, - isLogin:true -}, -{ - name:"kamala", - age:19, - isLogin:false -} -] -for(let i=0; i Date: Wed, 1 Apr 2026 21:45:32 +0545 Subject: [PATCH 2/7] Add initial files --- Students/kamala/learn4.js | 76 ++++++++++++++++++++++----------------- 1 file changed, 43 insertions(+), 33 deletions(-) diff --git a/Students/kamala/learn4.js b/Students/kamala/learn4.js index 82acd04..5c01cdf 100644 --- a/Students/kamala/learn4.js +++ b/Students/kamala/learn4.js @@ -1,34 +1,44 @@ -const letslearnUsersArray=[{ - name:"saugat Bagale", - age:23, - isLogin:true -},{ - name:"Nishant", - age:24, - isLogin:false -}, -{ - name:"Aakriti", - age:22, - isLogin:true -}, -{ - name:"subin", - age:19, - isLogin:false -}, -{ - name:"kamala", - age:19, - isLogin:true -}, -{ - name:"suman", - age:19, - isLogin:false -}, +// const letslearnUsersArray=[{ +// name:"saugat Bagale", +// age:23, +// isLogin:true +// },{ +// name:"Nishant", +// age:24, +// isLogin:false +// }, +// { +// name:"Aakriti", +// age:22, +// isLogin:true +// }, +// { +// name:"subin", +// age:19, +// isLogin:false +// }, +// { +// name:"kamala", +// age:19, +// isLogin:true +// }, +// { +// name:"suman", +// age:19, +// isLogin:false +// }, -]; -for (let user of letslearnUsersArray) { - console.log(user.name); -} \ No newline at end of file +// ]; +// for (let user of letslearnUsersArray) { +// console.log(user.name); +// } +const MarbalHeros = ["Iron Man","Captain America","Thor","Hulk","Black Widow","Hawkeye"]; + +function concactHeros(value){ + for (const hero of object.values(value)) { + + console.log(hero); + } +} + +concactHeros(MarbalHeros); \ No newline at end of file From d418bac16b795250e8bf42cf7ff57a829e1cb2a2 Mon Sep 17 00:00:00 2001 From: Script Shadow Date: Fri, 3 Apr 2026 20:43:17 +0545 Subject: [PATCH 3/7] task2 --- Students/kamala/task2.js | 90 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/Students/kamala/task2.js b/Students/kamala/task2.js index e69de29..0b32b7c 100644 --- a/Students/kamala/task2.js +++ b/Students/kamala/task2.js @@ -0,0 +1,90 @@ +// Recommended Task: "The E-Commerce Inventory Manager" +// Objective: +// Build a system to manage products in a store using functions to automate tasks and objects to store complex data. + + +// Create an empty array called inventory. +let inventory=[] + +// Create a function called createProduct(name, price, quantity). +// This function should return an object with those three properties. +// Call this function three times to create these items and add them to your inventory array: +// "Laptop", 1200, 10 +// "Mouse", 25, 50 +// "Keyboard", 100, 20 +function createProduct(name, price, quantity){ + let products= { + "name":name, + "price":price, + "quantity":quantity + }; + return products + +} + +let p1=createProduct("Laptop",1200,10) +let p2=createProduct("Mouse",25,50) +let p3=createProduct("Keyboard",100,20) + +inventory=[p1,p2,p3]//all data was overridden by `p3 + +// Updating Data (Accessing Constraints) + +// Oh no! The "Mouse" price was wrong. Access the second item in your inventory array and update its price to 30. +// Access the "Laptop" (first item) and add a new property category with the value "Electronics". +inventory[1].price=30 +console.log("After increasing mouse price",inventory) + +// Access the "Laptop" (first item) and add a new property category with the value "Electronics". +// Merging Product Details (Spread Operator): +inventory[0].category="Electronics" +console.log("After adding the category on p1",inventory) +// Create an object called extraDetails with { warranty: "2 years", color: "Silver" }. +// Create a new variable updatedLaptop by merging the first item in your inventory with extraDetails using the spread operator (...). +// Console log updatedLaptop to see the combined result. + +const extraDetails={ + warranty:"2 years", + color:"Silver" +} + +let updatedLaptop={...inventory[0],...extraDetails} +console.log(updatedLaptop) + +// The Sale Function (Arrow Functions): + +// Write an Arrow Function called calculateTotalValue. +// It should accept two parameters: price and quantity. +// It should return the total value (price * quantity). +// Use this function to calculate the total value of the "Keyboard" stock (from your inventory) and log it. + +const calculateTotalValue=(price,quantity)=>{ + return (price*quantity) +} +const totalValOfKeyboard=calculateTotalValue(inventory[2].price,inventory[2].quantity) +console.log("The total value of Keyboard is",totalValOfKeyboard) + +// Nested Data Challenge: + +// Create a user object called adminUser with: +// name: "Manager" +// permissions: A nested object { canEdit: true, canDelete: false } +// Write an if statement: If adminUser.permissions.canEdit is true, console log "Access Granted: Inventory updated." +// Why this works: +// Functions: They practice passing arguments (name, price) effectively. +// Objects: They learn to store grouped data instead of just single variables. +// Spread: Real-world use case (adding extra specs to a product). +// Nested Access: Reviewing how to dig into data (user.permissions.canEdit). + + const adminUser={ + name:"Manger", + permissions:{ + canEdit:true, + canDelete:false + } + } + + if (adminUser.permissions.canEdit ===true){ + console.log("Access Granted: Inventory updated!!!!") + + } \ No newline at end of file From 011a1298cdb2516c206eef4870b6fe80fa919765 Mon Sep 17 00:00:00 2001 From: Script Shadow Date: Sat, 4 Apr 2026 11:50:11 +0545 Subject: [PATCH 4/7] learn5 --- Students/kamala/learn5.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Students/kamala/learn5.js diff --git a/Students/kamala/learn5.js b/Students/kamala/learn5.js new file mode 100644 index 0000000..f8fef20 --- /dev/null +++ b/Students/kamala/learn5.js @@ -0,0 +1,8 @@ +const studentScores =[ + 10,85,92,78,88,95,80 +]; +const total=studentScores.reduce(function(total,current){ + console.log("value:",total,current) + return total+ current +},0); +console.log("Total Marks Sum :",total) \ No newline at end of file From 48337867dfff9c26dd5d5f5e9c2694da6302fb4f Mon Sep 17 00:00:00 2001 From: Script Shadow Date: Sat, 4 Apr 2026 11:50:57 +0545 Subject: [PATCH 5/7] learn5 --- Students/kamala/learn5.js | 32 ++++++++++++++++++++++++-------- Students/kamala/read.js | 0 2 files changed, 24 insertions(+), 8 deletions(-) delete mode 100644 Students/kamala/read.js diff --git a/Students/kamala/learn5.js b/Students/kamala/learn5.js index f8fef20..39372d1 100644 --- a/Students/kamala/learn5.js +++ b/Students/kamala/learn5.js @@ -1,8 +1,24 @@ -const studentScores =[ - 10,85,92,78,88,95,80 -]; -const total=studentScores.reduce(function(total,current){ - console.log("value:",total,current) - return total+ current -},0); -console.log("Total Marks Sum :",total) \ No newline at end of file +// const studentScores =[ +// 10,85,92,78,88,95,80 +// ]; +// const total=studentScores.reduce(function(total,current){ +// console.log("value:",total,current) +// return total+ current +// },0); +// console.log("Total Marks Sum :",total) + +// for in use +const array={ + name:"Adhikari", age:20,email:"adhikari@gmail.com" +} +for (const key in array){ + console.log(array[key]) +} +// for of use + +const array2={ + name:"Adhikari", age:20,email:"adhikari@gmail.com" +} +for (const [key, value] of Object.entries(array2)) { + console.log(key, value) +} diff --git a/Students/kamala/read.js b/Students/kamala/read.js deleted file mode 100644 index e69de29..0000000 From 69f27fbcea28fbdce3e1baf8af91b1b3a93af348 Mon Sep 17 00:00:00 2001 From: Script Shadow Date: Wed, 8 Apr 2026 19:56:17 +0545 Subject: [PATCH 6/7] added color change feature --- Students/kamala/dom.html | 53 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Students/kamala/dom.html diff --git a/Students/kamala/dom.html b/Students/kamala/dom.html new file mode 100644 index 0000000..080ba38 --- /dev/null +++ b/Students/kamala/dom.html @@ -0,0 +1,53 @@ + + + + Color Change + + + + + + + + + + + \ No newline at end of file From 64d6f4ef47e93860dec5929be269d2d4cbd7d943 Mon Sep 17 00:00:00 2001 From: Script Shadow Date: Sun, 26 Apr 2026 20:13:25 +0545 Subject: [PATCH 7/7] Initial commit --- Students/kamala/index.html | 48 ++++++++++++++++++++- Students/kamala/index1.html | 84 +++++++++++++++++++++++++++++++++++++ Students/kamala/task3.html | 23 ++++++++++ Students/kamala/task3.js | 0 4 files changed, 153 insertions(+), 2 deletions(-) create mode 100644 Students/kamala/index1.html create mode 100644 Students/kamala/task3.html delete mode 100644 Students/kamala/task3.js diff --git a/Students/kamala/index.html b/Students/kamala/index.html index 0110afc..19ecb64 100644 --- a/Students/kamala/index.html +++ b/Students/kamala/index.html @@ -1,10 +1,54 @@ + - + Document + + google + + - \ No newline at end of file + + + \ No newline at end of file diff --git a/Students/kamala/index1.html b/Students/kamala/index1.html new file mode 100644 index 0000000..1003ced --- /dev/null +++ b/Students/kamala/index1.html @@ -0,0 +1,84 @@ + + + +Todo List + + + + +
+

To Do List

+ + + + +
    + +
    + + + + + \ No newline at end of file diff --git a/Students/kamala/task3.html b/Students/kamala/task3.html new file mode 100644 index 0000000..e627620 --- /dev/null +++ b/Students/kamala/task3.html @@ -0,0 +1,23 @@ + + + + + + Color change + + + + + + + \ No newline at end of file diff --git a/Students/kamala/task3.js b/Students/kamala/task3.js deleted file mode 100644 index e69de29..0000000