title: If statement based on user input
body: <p>Trying to run a if statement based off a user input, would this be the correct way? So if the user is on a subscription then isSubscription is true.   </p>
  
  <pre><code>var subscription = window.alert("Is this a subscription? (Y/N)"); 
      if (subscription == "Y") {
          isSubscription = true;
        } else {
          isSubscription = false;
          window.alert("No activation key");
        }
  </code></pre>