title: Guess the Season JavaScript
body: <p>Write a program that displays the name of the season associated with a given date and month. Use the table below to determine the season's start and end dates.</p>
  <p>Season  Start Date<br />
  Spring  March 20<br />
  Summer  June 21<br />
  Autumn  September 22<br />
  Winter  December 21<br />
  For example, Autumn lasts from September 22 to December 20, both inclusive.</p>
  <p>Input<br />
  On the first line, you will receive the month as a string<br />
  On the second line, you will receive the date as a number<br />
  Output<br />
  On the only line of output, print the name of the season in pascal case<br />
  Input<br />
  April<br />
  6<br />
  Output<br />
  Spring</p>
  <p>CODE :</p>
  <pre><code>let input = [
      'April', 
      '6',
  ];
   
  let print = this.print || console.log;
  
  let gets = this.gets || ((arr, index) =&gt; () =&gt; arr[index++])(input, 0);
  
  let month = gets();
  
  let day = gets();
  
  if (month === ((&quot;March&quot; &amp;&amp; day &gt;= 20) || &quot;April&quot; || &quot;May&quot;) || (&quot;June&quot; &amp;&amp; day &lt; 21)) {
      print(&quot;Spring&quot;)
  }
  
  else if (month ===(&quot;December&quot; &amp;&amp; day &gt;= 21) || &quot;January&quot; || &quot;February&quot; || (&quot;March&quot; &amp;&amp; day &lt; 20)) {
      print(&quot;Winter&quot;);
  
  }
   else  if (month === (&quot;June&quot; &amp;&amp; day &gt;= 21) || &quot;July&quot; || &quot;August&quot; || (&quot;September&quot; &amp;&amp; day &lt; 22) ) {
          print(&quot;Summer&quot;);
  
   }
     else if (month === (&quot;September&quot; &amp;&amp; day &gt;= 22) ||&quot;October&quot;||&quot;November&quot;||(&quot;December&quot; &amp;&amp; day &lt; 21)) {
          print(&quot;Autumn&quot;);
      }
  </code></pre>