zodiac incomplete

by trentHarlem

HTML

<h1>
// workin progress
</h1>

CSS

body {
  background-color: #111;
  color: yellow;
  font: bold 1.2em helvetica,system-ui;
}

JavaScript

// workin progress
function starSign(date) {
/* bday = new Date().getTime() */
let year = date.getFullYear()
let month = date.getMonth()
let day = date.getDate()
//let bday = new Date(month + day)
let bday = new Date(month)
console.log(bday);
 console.log(year);
console.log(month);
console.log(day); 
  
if(bday > new Date(1/21) && bday < new Date(2/19)) return 'Aquarius';
if(bday > new Date(5/21) && bday < new Date(5/21)) return 'Gemini';
else return 'idk'
//if(bday > 1/21 && bday < 2/19) return 'Aquarius';
}


console.log(starSign(new Date(1970, 5, 5)), 'Gemini');
//console.log(starSign(new Date(2000, 1, 15)), 'Aquarius');
//console.log(starSign(new Date(1987, 7, 23)), 'Leo');
/* 
Aquarius ------ 21 January - 19 February
Pisces --------- 20 February - 20 March
Aries ---------- 21 March - 20 April
Taurus -------- 21 April - 21 May
Gemini -------- 22 May - 21 June
Cancer -------- 22 June - 22 July
Leo ------------- 23 July - 23 August
Virgo ----------- 24 August - 23 September
Libra ----------- 24 September - 23 October
Scorpio -------- 24 October - 22 November
Sagittarius ---- 23 November - 21 December
Capricorn ----- 22 December - 20 January 

*/