¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 11 de 11 · Multimedia

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

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?