-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.js
35 lines (28 loc) · 789 Bytes
/
test.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
const myArr = ['chicken.com', 'turkey.vid', 'tomatoes.jpg'];
const newArr = myArr.map((item) => {
let formattedID = item.slice(0, item.length - 4);
return formattedID;
});
console.log(
'hello my name is maiya and i have the most gorilla grip coochie that you have ever had :P'
);
function mybiggestconfession(num1, num2) {
console.log(num1 + num2);
}
mybiggestconfession(1, 2);
function run() {
var raw = JSON.stringify({ folderName: 'unlv' });
var requestOptions = {
method: 'GET',
body: raw,
redirect: 'follow',
};
fetch(
'https://desolate-everglades-01373.herokuapp.com/search',
requestOptions
)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
}
run();