diff --git a/Students/Nishan/DOM.html b/Students/Nishan/DOM.html new file mode 100644 index 0000000..48e0823 --- /dev/null +++ b/Students/Nishan/DOM.html @@ -0,0 +1,33 @@ + + + + + + Document + + + + + + + \ No newline at end of file diff --git a/Students/Nishan/dom2.html b/Students/Nishan/dom2.html new file mode 100644 index 0000000..39ec71b --- /dev/null +++ b/Students/Nishan/dom2.html @@ -0,0 +1,22 @@ + + + + + + Document + + + + + + \ No newline at end of file diff --git a/Students/Nishan/for each.js b/Students/Nishan/for each.js new file mode 100644 index 0000000..d23b00b --- /dev/null +++ b/Students/Nishan/for each.js @@ -0,0 +1,11 @@ +//foreach loop is used to iterate over the array and perform a function on each element of the array +const MarbalHeros=["Iron Man","Captain America","Thor","Hulk","Black Widow","Hawkeye"]; +MarbalHeros.forEach(function(hero){ + console.log(hero); +}) + +//foreach loop is used to iterate over the array and perform a function on each element of the array +const numbers=[1,2,3,4,5]; +numbers.forEach(function(number){ + console.log(number*2); +}) \ No newline at end of file diff --git a/Students/Nishan/forin & forof.js b/Students/Nishan/forin & forof.js new file mode 100644 index 0000000..2c30295 --- /dev/null +++ b/Students/Nishan/forin & forof.js @@ -0,0 +1,42 @@ +// forin give only name of the key +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 +}, + +] +//forin give only name of the key +for(let key in letslearnUsersArray){ + console.log(letslearnUsersArray[key].name) +} +//for of give only name +for(let key of letslearnUsersArray){ + console.log(key.name) +} + + diff --git a/Students/Nishan/html+js.html b/Students/Nishan/html+js.html new file mode 100644 index 0000000..14806ae --- /dev/null +++ b/Students/Nishan/html+js.html @@ -0,0 +1,35 @@ + + + + + + Document + + + + + + + + \ No newline at end of file diff --git a/Students/Nishan/task 4.html b/Students/Nishan/task 4.html new file mode 100644 index 0000000..e69de29 diff --git a/Students/Nishan/task4.html b/Students/Nishan/task4.html new file mode 100644 index 0000000..d224d3a --- /dev/null +++ b/Students/Nishan/task4.html @@ -0,0 +1,112 @@ + + + + + + + Document + + + + +

Click the button to see a motivational quote!

+ + + \ No newline at end of file