GoConqr has a new look! Let us know what you think.

Module 11 of 11 · Media

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. :-) 

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?