forked from LaunchCodeEducation/javascript-projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlecture918
More file actions
54 lines (33 loc) · 1.23 KB
/
lecture918
File metadata and controls
54 lines (33 loc) · 1.23 KB
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
const input = require('readline-sync');
//let arrayOne = ["Gerard", "Teacher", "Very Tall", 32, false, undefined];
//let arrayTwo = ["Banana Cat", "Banana Cat", "Very Yellow", 4. true];
//console.log(myArray[3].length);
//let newArray = [];
//newArray.unshift(myArray[0]);
//newArray.unshift(myArray[1]);
//newArray.unshift(myArray[2]);
//newArray.unshift(myArray[3]);
//newArray.unshift(myArray[4]);
//newArray.unshift(myArray[5]);
//newArray.unshift(myArray[6]);
//console.log(myArray);
//console.log(newArray);
//let myString = "JavaScript";
//let letterJ = myString.slice(0, 1);
//let letterS = myString.slice((myString.indexOf("S")), myString.indexOf("S") + 1);
//let myString = "Banana Cat";
//console.log(myString.slice(1, 3));
//let myName = input.question("What is yout name?");
//if(myName === "Whitney") {
// console.log("Very funny. /s'");
//} else {
// console.log("Good afternoon! :)");
//}
//let myString = "Where does the .push() method put things in an array?";
//console.log(myString.indexOf("ra"));
//console.log(myString.indexOf("o");
//console.log(myString.indexOf("q"));
//myString[0] = "w";
//console.log(myString);
//myString = "where does the .push() method put things in an array?";
//console.log(myString);