// 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

// Long Way
// var leapYear = function(year) {
//   var leap = false;
//   if(year % 400 === 0){
//     //console.log("Yes, this is a leap year!");
//     leap = true;
//     //return leap
//   }else if(year % 100 === 0){
//     leap = false
//   }else if(year % 4 === 0){
//     leap = true
//   }else if(year % 4 !== 0 ){
//     leap = false
//   };
//   if(leap === true){
//     console.log("LEAP YEAR")
//     return leap
//   }else{
//     console.log("not leap year")
//     return leap
//   };
// };

// Refactored Way
var leapYear = function(year) {
  var leap = false;
  if(year % 400 === 0 || year % 4 === 0){
    console.log("Yes, this is a leap year!");
    leap = true;
    return leap
  }else if(year % 4 !== 0 || year % 100 === 0){
    console.log("No, this is not a leap year")
    return leap
  };
};


//console.log(leapYear(1999))
//console.log(leapYear(2000))
console.log(leapYear(1900))
//console.log(leapYear(1200))
//console.log(leapYear(1493))
//console.log(leapYear(1776))
@@ -1068,22 +1068,19 @@
 %0A// 
-Refactored Way
+Long way #2
 %0Avar
@@ -1131,32 +1131,520 @@
 lse;%0A  if(year %25
+ 4 === 0)%7B%0A    if(year %25 100 !== 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      if(year %25 400 === 0)%7B%0A        console.log(%22Yes, this is a leap year!%22);%0A        leap = true;%0A        return leap%0A      %7Delse%7B%0A        console.log(%22No, this is not a leap year%22)%0A        return leap%0A      %7D;%0A    %7D%0A  %7Delse if(year %25 4 !== 0)%7B%0A    console.log(%22No, this is not a leap year%22)%0A    return leap%0A  %7D;%0A%7D;%0A%0A%0A%0A//   if(year %25
  400 === 0 %7C%7C ye
@@ -1650,32 +1650,35 @@
 ear %25 4 === 0)%7B%0A
+// 
     console.log(
@@ -1703,24 +1703,27 @@
 ap year!%22);%0A
+// 
     leap = t
@@ -1727,20 +1727,23 @@
 = true;%0A
+//
     
+ 
 return l
@@ -1746,16 +1746,19 @@
 rn leap%0A
+// 
   %7Delse 
@@ -1793,24 +1793,27 @@
 100 === 0)%7B%0A
+// 
     console.
@@ -1839,32 +1839,35 @@
 t a leap year%22)%0A
+// 
     return leap%0A
@@ -1862,29 +1862,35 @@
 return leap%0A
+// 
   %7D;%0A
+// 
 %7D;%0A%0A%0A//conso
@@ -1942,16 +1942,18 @@
 (2000))%0A
+//
 console.

Add a second long solution