-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
185 lines (113 loc) · 4.15 KB
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
// JavaScript Array Function
//push {Last ma value add krna ka liya.}
//pop {Last wali value remove krna ka liya}
//unshift {start ma value add krna ka liya.}
//shift {start ma value remove krna ka liya}
//splice {Bich ma sa value hata na ka liya}
//split {array bana ka liya}
//join {pragraf krna ka liya}
//concat {dono ko array ko jorna ka liya}
//slice {bich sa kisi word ko hatana ya lagana}
//sort
//reverse
//indexof
// let softwere = ['Photoshop', 'figma', 'indeign']
// softwere.push('premiere') {last ma value add krna ka liya}
// softwere.pop('') {last ma value reomve krna ka liya}
// softwere.unshift('Vs code') {start ma value add krna ka liya}
// softwere.shift('') { start ma value add krna ka liya}
// softwere.splice(1 , 1) {bich ma sa value hata or laga na ka liya}
// softwere.length=0 {Array ki length 0 krna ka liya}
// softwere.splice(1 , 2)
// array = softwere.split(" ")
// array = softwere.join('')
// console.log(array);
// .length = Array ki length Check krna ka liya
// console.log(softwere.length);
// console.log(softwere[1]);
// const shop = ['Apple', 'Banana', 'Orange', 'Mango', 'Grape', 'Strawberry'];
// const input = document.querySelector('#input');
// const h2 = document.querySelector('h2');
// function getFruits() {
// console.log(input.value)
// if (shop.includes(input.value)) {
// console.log('fruit available haa..')
// h2.innerHTML = `${input.value} is available`
// } else {
// console.log('fruit available nahi ha');
// h2.innerHTML = `${input.value} is not available`
// }
// input.value = ''
// }
// let shop = ['Apple', 'Banana', 'Orange', 'Mango', 'Grape', 'Strawberry'];
// let input = document.querySelector('input')
// let heading = document.querySelector('h1')
// function getFruits(){
// console.log(input.value);
// if (shop.includes(input.value)){
// // console.log('input.value');
// heading.innerHTML = `${input.value} Is Avalible`
// }else {
// heading.innerHTML = `${input.value} Is not Availble`
// }
// input.value = ''
// }
// let input = document.querySelector('input')
// let head = document.querySelector('h1')
// function getFruits(){
// console.log(input.value);
// if(shop.includes(input.value)){
// head.innerHTML = `${input.value} Is Available`
// }else {
// head.innerHTML = `${input.value} its not Available`
// }
// input.value = ''
// }
// // myShop.length()
// console.log(myShop.length);
// let myShop = ['Apple', 'Banana', 'Orange', 'Mango', 'Grape', 'Strawberry'];
// let input = document.querySelector('input');
// let head = document.querySelector('h1');
// function myFunk(){
// console.log(input.value);
// if (myShop.includes(input.value)){
// head.innerHTML = `${input.value} Its Availble`
// }else {
// head.innerHTML =` ${input.value} its not Available`
// }
// }
// let myShop = ['Apple', 'Banana', 'Orange', 'Mango', 'Grape', 'Strawberry'];
// let input = document.querySelector('input');
// let head = document.querySelector('h1');
// function myFunk(){
// console.log(input.value);
// if(myShop.includes('input.value')){
// head.innerHTML = `${input.value} Its Available`
// }else {
// head.innerHTML = `${input.value} its Not Available`
// }
// }
// let fruits = ['Apple','Banana','Naspati','Badam','Akhrot'];
// let ul = document.querySelector('ul')
// for (let i = 0; i <= 5; i++){
// ul.innerHTML += `<li>${fruits[i]}</li>`
// }
// let fruits = ['Apple','Banana','Naspati','Badam','Akhrot'];
// let Subject = []
// let input = document.querySelector('input')
// function myIntro(){
// Subject = input.value
// console.log(Subject);
// input.value = ''
// }
let softwere = ['Illustrator', 'PhotoShop',];
let softwere1 = ['Indesign', 'Figma']
// let userName = 'Haseeb Javad Asadbhai Ahmed'
// softwere.unshift('Premiere')
// softwere.shift('Premiere')
// softwere.shift('Premiere')
// softwere.splice(1,2)
// let position = softwere.indexOf('PhotoShop')
// let joinArray = softwere.join(' ')
// let newArray = softwere.concat(softwere1)
console.log(newArray);