Inspired by National Geographic's Goldilocks Zone Visualization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name | mass | radius | hzd | |
---|---|---|---|---|
Kepler-9 d | 0.02 | 2 | -2.42 | |
PSR 1257 12 b | 0.02 | 0.31 | -2.31 | |
Kepler-37 b | 0.02 | 0.32 | -2.16 | |
Mercury | 0.06 | 0.38 | -1.71 | |
KIC-12557548 b | 0.1 | 0.85 | -2.26 | |
Mars | 0.11 | 0.53 | 0.5 | |
Kepler-62 c | 0.12 | 0.54 | -2.01 | |
Kepler-42 d | 0.14 | 0.57 | -1.72 | |
KOI-82 d | 0.26 | 0.69 | -2.14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Super basic assertion | |
// console.log(square(2) === 4); | |
// Now, let's try writing an assertion that gives us a little more information about what's going on. | |
/* Write a function, assertEqual, that takes in 3 arguments: | |
- An invocation of the function you're testing | |
- The expected output of the function you're testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Last time | |
* Conditionals (rps mini game) | |
This time | |
* Functions | |
* Iteration (for and while loop) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var library = { | |
books: { | |
orwell: ['1984', 'animal farm'], | |
hemingway: ['A Farewell to Arms', 'The Old Man and the Sea', 'The Sun Also Rises'] | |
}, | |
plays: { | |
shakespeare: ['romeo and juliet', 'macbeth'] | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Data type | |
// Examples: String, number, boolean | |
// Data structure | |
// Examples: arrays, objects | |
var firstName = "Ram"; | |
var age = "30"; |
NewerOlder