title: Twig in Javascript
body: <p>How can I set a twig variable to a javascript variable in javascript?</p>
  <p>Example:</p>
  <pre><code>&lt;script&gt;
  let userOut = &quot;123&quot;;
  &lt;/script&gt;
  </code></pre>
  <p>how can i:</p>
  <pre><code>{% set user['variable'] = userOut %}
  </code></pre>