Skip to content

Commit c770172

Browse files
All Folders Added'
1 parent 9112ec0 commit c770172

File tree

27 files changed

+450
-1
lines changed

27 files changed

+450
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ This is not just a course — it’s a **journey from zero to web hero**! 🌟 S
6262
---
6363

6464
🚀 Let’s build the web — one line of code at a time!
65-
**#HappyCoding 👩‍💻❤️🧠🌐🔥**
65+
**#HappyCoding 👩‍💻❤️🧠🌐🔥**

Video62/index.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* Create a business name generator by combining list of ajectives and shop name and another word
2+
use functions not array
3+
Adjectives:
4+
Crazy
5+
amazing
6+
fire
7+
8+
Shop Name:
9+
Engine
10+
Foods
11+
Garments
12+
13+
Another Word:
14+
Bros
15+
Limited
16+
Hub
17+
18+
*/

Video63/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Document</title>
7+
</head>
8+
<body>
9+
<script src="index.js"></script>
10+
</body>
11+
</html>

Video63/index.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
let arr = [1, 2, 3, 4, 5, 7]
2+
// index 0, 1, 2, 3, 4
3+
arr[0] = 5666;
4+
// console.log(arr, typeof arr); //type of array is object
5+
// console.log(arr.length)
6+
// console.log(arr[0])
7+
// console.log(arr[2])
8+
// console.log(arr[4])
9+
// let a = "harry"
10+
// a[0] = "K"
11+
// console.log(a)
12+
// string not changed
13+
// console.log(arr.toString())
14+
// console.log(arr.join(" and "))
15+
// let a = [1,2,3,4,5,6]
16+
// console.log(a.pop())
17+
// console.log(a)
18+
// console.log(a.push(100))
19+
// console.log(a)
20+
// console.log(a.push("Harry"))
21+
// console.log(a)
22+
// console.log(a.shift())
23+
// console.log(a)
24+
// console.log(a.unshift("jack"))
25+
// console.log(a)
26+
// let a1 = [1, 2, 3]
27+
// let a2 = [4, 5, 6]
28+
// let a3 = [9, 8, 7]
29+
// console.log(a1. concat(a2, a3))
30+
// let a4 = [7, 9, 8]
31+
// console.log(a.sort())
32+
const a = [1,2,3,4,5]
33+
console.log(a.splice(2,3,4,222,333))
34+
console.log(a)
35+
console.log(a.reverse(a))
36+
console.log(a)

Video63/loops.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
let a =[1,93,5,6,88]
2+
3+
// for (let index = 0; index < a.length; index++) {
4+
// const element = a[index];
5+
// console.log(element)
6+
// }
7+
// a.forEach((value,index,arr)=>{
8+
// console.log(value,index,arr)
9+
// })
10+
// let obj = {
11+
// a: 1,
12+
// b: 2,
13+
// c: 3
14+
// }
15+
16+
// for (const key in obj) {
17+
// if (Object.prototype.hasOwnProperty.call(obj, key)) {
18+
// const element = obj[key];
19+
// console.log(key, element)
20+
// }
21+
// }
22+
// for (const element of a) {
23+
// console.log(element)
24+
// }

Video63/mfr.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
let arr=[1,13,5,7,11];
2+
let newArr = []
3+
for (let index = 0; index < arr.length; index++ ){
4+
const element = arr[index];
5+
newArr.push(element**2)
6+
}
7+
let newArr=arr.map((e , index, array)=>{
8+
return e**2
9+
})
10+
console.log(newArr)
11+
const greaterThanSeven = (e)=>{
12+
if(e>7){
13+
return true
14+
}
15+
return false
16+
}
17+
console.log(arr.filter(greaterThanSeven))
18+
let arr2 = [1,2,3,4,5,6]
19+
const red = (a,b) =>{
20+
return a+b
21+
}
22+
console.log(arr2.reduce(red))
23+
console.log(Array.from("Harry"))

Video63/tempCodeRunnerFile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
let arr=[1,13,5,7,11];

Video64/index.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Document</title>
7+
</head>
8+
<body>
9+
<script>
10+
let rand = Math.random()
11+
let first, second, third;
12+
// 0 0.33 0.66 100
13+
// Lets generate the first word
14+
if (rand<0.33){
15+
first = "Crazy"
16+
}
17+
else if(rand<0.66 && rand>=0.33){
18+
first = "Amazing"
19+
}
20+
else{
21+
first = "Fire"
22+
}
23+
// 0 0.33 0.66 100
24+
// Lets generate the Second word
25+
rand = Math.random()
26+
if (rand<0.33){
27+
second = "Engine"
28+
}
29+
else if(rand<0.66 && rand>=0.33){
30+
second = "Food"
31+
}
32+
else{
33+
second = "Garments"
34+
}
35+
// Lets generate the Third word
36+
rand = Math.random()
37+
if (rand<0.33){
38+
third = "Bros"
39+
}
40+
else if(rand<0.66 && rand>=0.33){
41+
third = "Limited"
42+
}
43+
else{
44+
third = "Hub"
45+
}
46+
console.log(`${first} ${second} ${third}`)
47+
</script>
48+
</body>
49+
50+
51+
52+
</html>

Video64/index.js

Whitespace-only changes.

Video65/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Exercise</title>
7+
</head>
8+
<body>
9+
<!--
10+
Write a program to calculate factorial of a number using reduce and using for loops
11+
12+
13+
6! = 6*5*4*3*2*1
14+
15+
-->
16+
</body>
17+
18+
19+
</html>

0 commit comments

Comments
 (0)