kidsFactsfunction
The three facts on a body's sheet, in plain words, worked out from the package's numbers: its width and how it compares with Earth, how long it takes to spin and to go round, and for a moon the face it shows.
Import it
import { kidsFacts } from "@johnmorrisdotca/wakusei-planets/sheets";
Definition
function kidsFacts(id: KidsBody, lang?: Lang): string[]
Parameters
| Name | Type | Description |
|---|---|---|
id | "sun" | "mercury" | "venus" | "earth" | "mars" | "jupiter" | "saturn" | "uranus" | "neptune" | "pluto" | "moon" | "io" | "europa" | "ganymede" | "callisto" | "titan" | "triton" | "charon" | A body with a sheet. |
lang (optional) | Lang |
|
Returns
string[]
Three short sentences.
Examples
import { kidsFacts } from "@johnmorrisdotca/wakusei-planets/sheets";
console.log(kidsFacts("jupiter", "en"));[
'143,000 km across: 11 times as wide as Earth.',
'It spins once in 9.9 hours.',
'It goes around the Sun in 12 years.'
]What it prints (run when this page was built)