Howdy I've only just started working with basic JavaScript.
Write a program which will accept a year from the user and display whether the year is a leap year or not.
The teacher has not been much help and I don't know how I should go about the coding, I'm not asking for an answer - I would like a link or some referencing I could use to learn how to do this as I am pretty darn puzzled.
Below is an example of what I think it sort of needs to look like, I've only been doing JS for a couple days now so please if you're going to burn me remember that.
var year=prompt("Please input a year: ");
var remainder=year % 4
if remainder === 4
then
document.write("It is not a leap year.");
else
document.write("It is a leap year.");
document.write("You entered: " ,year, ".");