title: How to feed javascript function a variable in a parameter to change?
body: <p>For example, I have this code:</p>
  <pre class="lang-js prettyprint-override"><code>  function verifyContents(fieldInfo, indicator){
      if (fieldInfo === &quot;&quot;){
        indicator = &quot;You didn't enter anything in here&quot;;
        return;
      }
      else{
        indicator = &quot;&quot;;
      };
    };
  </code></pre>
  <p>I want to get fieldInfo, check if it's empty, and change the variable inputted in indicator based on it. I just call it like this:</p>
  <pre class="lang-js prettyprint-override"><code>verifyContents(formContents[0],usernameFieldIndicator);
  </code></pre>