// Problem: Check whether a given year is a leap year or not.

// Input: A year
// Output: A boolean value of whether the year is a leap year or not

// Pseudocode
// Create a function that takes a year as a parameter
// Make an conditional statement:
// --> 1st check use an 'or' statement to see if year is not divisible by four or evenly divided by 100 and return that it is not a leap year
// --> 2nd make an else if statement using another 'or' operator that checks if year is evenly divisible four using modulus or if the year is evenly divided by 400
@@ -550,8 +550,1008 @@
 d by 400
+%0A%0A// Long Way%0A// var leapYear = function(year) %7B%0A//   var leap = false;%0A//   if(year %25 400 === 0)%7B%0A//     //console.log(%22Yes, this is a leap year!%22);%0A//     leap = true;%0A//     //return leap%0A//   %7Delse if(year %25 100 === 0)%7B%0A//     leap = false%0A//   %7Delse if(year %25 4 === 0)%7B%0A//     leap = true%0A//   %7Delse if(year %25 4 !== 0 )%7B%0A//     leap = false%0A//   %7D;%0A//   if(leap === true)%7B%0A//     console.log(%22LEAP YEAR%22)%0A//     return leap%0A//   %7Delse%7B%0A//     console.log(%22not leap year%22)%0A//     return leap%0A//   %7D;%0A// %7D;%0A%0A// Refactored Way%0Avar leapYear = function(year) %7B%0A  var leap = false;%0A  if(year %25 400 === 0 %7C%7C year %25 4 === 0)%7B%0A    console.log(%22Yes, this is a leap year!%22);%0A    leap = true;%0A    return leap%0A  %7Delse if(year %25 4 !== 0 %7C%7C year %25 100 === 0)%7B%0A    console.log(%22No, this is not a leap year%22)%0A    return leap%0A  %7D;%0A%7D;%0A%0A%0A//console.log(leapYear(1999))%0A//console.log(leapYear(2000))%0Aconsole.log(leapYear(1900))%0A//console.log(leapYear(1200))%0A//console.log(leapYear(1493))%0A//console.log(leapYear(1776))

Complete long form solution, refactored solution still in works