title: .toUpperCase() is not a function
body: <p>When name is all uppercase, then the function should shout back to the user. For example, when name is "JERRY" then the function should return the string "HELLO, JERRY!" The console logs error: .toUpperCase() is not a function.</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 hello = "Hello, ";
  
  function greet(name) {
  
    if (name == null) {
      console.log(hello + "my friend")
    } else if (name == name.toUpperCase()) {
      console.log(hello.toUpperCase() + name.toUpperCase())
    } else {
      console.log(hello + name);
    }
  }
  
  var names = ["jack", "john"]
  greet(names);</code></pre>
  </div>
  </div>
  </p>