Skip to content

planet.ts

github-actions[bot] edited this page Nov 19, 2023 · 1 revision

Functions

addMoon(element)void

Add a new section for adding a moon to a planet.

enableMoonAdd()void

Enables the add button for moonInputs and triggers the moonList function

moonList()undefined

Populates the moon list in the output with the current values of the moonInputs.

moonSentence()string

Generates a sentence describing the moons of the current planet.

addMoon(element) ⇒ void

Add a new section for adding a moon to a planet.

Kind: global function

Param Type Description
element HTMLElement

The element that triggered the addition of the moon section.

enableMoonAdd() ⇒ void

Enables the add button for moonInputs and triggers the moonList function

Kind: global function

moonList() ⇒ undefined

Populates the moon list in the output with the current values of the moonInputs.

Kind: global function

moonSentence() ⇒ string

Generates a sentence describing the moons of the current planet.

Kind: global function
Returns: string -

  • Sentence describing the planet's moons.
Clone this wiki locally