title: Variable type for Javascript Function
body: <p>As a javascript novice, I've read several tutorials on javascript functions and want to know the variable type if I declare my function without specifying a type before the variable like the code below:</p>
  <pre><code>variable1 = (x) =&gt; 1+x;
  </code></pre>
  <p>or</p>
  <pre><code>variable2 = function(x) {return 1+x}
  </code></pre>
  <p>The above examples are in constrast to other examples I've seen where let, const, or var is placed before the variable which makes more sense to me.  So, again I don't understand what kind of variable it is (const, let, var) if it specified before the variable declaration.</p>