title: Pass a variable to an arrow function
body: <p>I'm working with puppeteer, and I'm trying to pass a variable to an arrow function like this</p>
  
  <pre><code>    const token ='qwertyuisdfghjkl';
  
      await page.evaluate(token =&gt; {
        localStorage.setItem("token", token);
      });
  </code></pre>
  
  <p>But <code>token</code> is <code>undefined</code></p>