I'm in the most javascript class and I really don't understand it and I'm stumped on this question. I have trying many different ways for quite a while now, but just can't seem to figure it out. Problem: Here are the rules to determine if a particular year is or is not a leap year: Any year that is divisible by 400 is a leap year. Of the remaining years, any year that is divisible by 100 is not a leap year. Of the remaining years, any year that is divisible by 4 is a leap year. All other years are not leap years. Write JavaScript code that reads a year from the user and displays either Leap year or Not a leap year, whichever is correct.
Thanks for your help!