GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 11 von 11 · Medien

The zodiac cycle

Kostas Diakogiannis

The zodiac cycle

D-6 Create the Zodiac cycle

Write a function that accepts an argument as a birthday date and returns the correct  zodiac sign as a string. 

Create 12 objects that each has three properties. The sign property, which is the string like 'Aries', 'Capricorn', etc. The begin date for this zodiac, and the end date of the zodiac cycle.

Then if the birthday argument is between (smaller than endDate AND bigger than beginDate) console.log the corresponding sign!

Hint: You may want to loop through all the objects to check if the date is between each object's dates.  That means you have to put all the objects inside a place, where you can loop. :-) 

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck