- 1

code not running

I have written this code to calculate the day someone was born when they enter the date, month and year they were born, but it is not working!!! here is the code. the html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>bdayCalculator</title> <link rel="stylesheet" href="style.css"> </head> <body> <h1>Check which day of the week you where born</h1> <div class="calculator"> <input id="user_month" type="number" placeholder ="MM"> <input id="user_day" type="number" placeholder ="DD"> <input id="user_year" type="number" placeholder ="YYYY"> <button id="submit_date">which day was I born?</button> </div> <div id="massage"></div> <script src="myscript.js"></script> </body> </html> .............................................................................................................................................................................. .............................................................................................................................................................................. The Javascript: var userMonth = document.getElementById('user_month'); var userDay = document.getElementById('user_day'); var userYear = document.getElementById('user_year'); var submitbutton = document.getElementById('submit_date'); submitbutton.addEventListener("click", function (evt) { var massage = document.getElementById('massage'); var parsedMonth = (parseInt(userMonth.value) -1); var parsedDay = parsedDate(userDay.value); var ParsedYear = parsedYear(userYear.value); var months = ["January","February","March","April","May","June","July","August","September","October","November","December"]; var weekday = ["sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]; var dateIs = new Date(parsedYear,parsedDay,parsedMonth); var weekdayIs =

11th Jun 2018, 6:23 PM
Tanaka Bester
Tanaka Bester - avatar
1 Answer
0
I've created the code on my codes ..the name is birthday calculator please hel me make it run
11th Jun 2018, 6:42 PM
Tanaka Bester
Tanaka Bester - avatar