forked from lfkdsk/PracticeCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalert.js
More file actions
44 lines (30 loc) · 843 Bytes
/
Copy pathalert.js
File metadata and controls
44 lines (30 loc) · 843 Bytes
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
/**
* Created by liufengkai on 16/6/25.
*/
var fuckYou = "lfkdsk";
var lfk = `lfkdskdddd`;
console.log(lfk);
var arr = ['3.14', 3.14, fuckYou];
arr.forEach(function (element, value) {
console.error(element + " num: " + value);
});
console.log(arr[5]);
module.exports = arr;
console.log(arr.indexOf(fuckYou));
arr[5] = 'lfkddd';
console.log(arr.shift());
console.log(arr.unshift("ha"));
arr.sort();
console.log(arr);
arr.reverse();
console.log(arr);
var list = ['f', 'u', 'c', 'k', 'y', 'o', 'u'];
// console.log(list.splice(2, 3, 'l', 'f', 'k'));
// console.log(list.splice(2, 2));
console.log(list.splice(2, 0, 'f', 'y'));
console.log(list);
var addList = list.concat(['lfkdsk', 'hahaha']);
console.log(addList);
console.log(addList.join('-'));
var newList = [[300, 3200], 'fffff', ['flkdks']];
console.log(newList[0][1]);