-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathscriptHelper.js
More file actions
43 lines (33 loc) · 1.09 KB
/
scriptHelper.js
File metadata and controls
43 lines (33 loc) · 1.09 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
// Write your helper functions here!
require('isomorphic-fetch');
function addDestinationInfo(document, name, diameter, star, distance, moons, imageUrl) {
// Here is the HTML formatting for our mission target div.
/*
<h2>Mission Destination</h2>
<ol>
<li>Name: </li>
<li>Diameter: </li>
<li>Star: ${star}</li>
<li>Distance from Earth: </li>
<li>Number of Moons: </li>
</ol>
<img src="">
*/
}
function validateInput(testInput) {
}
function formSubmission(document, list, pilot, copilot, fuelLevel, cargoLevel) {
}
async function myFetch() {
let planetsReturned;
planetsReturned = await fetch().then( function(response) {
});
return planetsReturned;
}
function pickPlanet(planets) {
}
module.exports.addDestinationInfo = addDestinationInfo;
module.exports.validateInput = validateInput;
module.exports.formSubmission = formSubmission;
module.exports.pickPlanet = pickPlanet;
module.exports.myFetch = myFetch;