267
267
268
268
// const fruits = ['orange','ananas','banana','apple'];
269
269
// const c = fruits.includes('apple');
270
- // console.log(c);
270
+ // console.log(c);
271
+
272
+
273
+ //JOIN METHOD //
274
+ // const countries = ['Uzbekistan','India','Afganistan'];
275
+ // const res = countries.join('-');
276
+ // console.log(res);
277
+
278
+ // REVERSE METHOD //
279
+ // const numbers = [1,2,3,4,5];
280
+ // // const newArr = numbers.concat().reverse();
281
+ // const newArr = [...numbers].reverse();
282
+ // console.log(newArr);
283
+ // console.log(numbers);
284
+
285
+ // const str = ['Coding is fun! '];
286
+ // const res = str
287
+ // .split('')
288
+ // .reverse()
289
+ // .join('');
290
+ // console.log(res);
291
+
292
+ // PUSH METHOD //
293
+
294
+ // const numbers =[1,2,3,4]
295
+ // numbers.push(5,6,7)
296
+ // console.log(numbers);
297
+
298
+ // POP METHOD
299
+ // const num = [1,2,3]
300
+ // const num1 = num.pop()
301
+ // console.log(num1);
302
+
303
+ // UNSHIFT METHOD //
304
+ // const num = [1,2,3,4]
305
+ // num.unshift(0)
306
+ // console.log(num);
307
+
308
+ // SHIFT METHOD //
309
+ // const num = [1,2,3];
310
+ // num.shift();
311
+ // console.log(num);
312
+
313
+ // INDEXOF METHOD //
314
+
0 commit comments