title: javascript alert function not displaying mesaage
body: <p>I was trying to take names from the user as input and tried to display the names so that the <strong>first character is capitalised and the remaining letters in lower case.</strong>
  PROBLEM: alert function at the last is not displaying the message.
  CODE:
  ''' var Name = prompt(&quot;Enter your name: &quot;);</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var Name = prompt("Enter your name: ");
  var firstLetter = Name.Slice(0,1);
  var finalFirstLetter = firstLetter.toUpperCase();
  var remainingLetter = Name.Slice(0,Name.length);
  var FinalRemainingLetter = remainingLetter.toLowerCase();
  var captalisedName = finalFirstLetter + FinalRemainingLetter;
  alert("Hello, " + CaptalisedName);</code></pre>
  </div>
  </div>
  </p>