How to get my craft projectConfig settings inside JS on the front end So I am trying to work with twig templates and I want to inject my project configuration in my js so I can use it.

I can do this

{% set admin_email = craft.app.projectConfig.get.email.fromEmail %}

And this gives me access to {{ admin_email }} anywhere in the document, just like &lt;?php echo $admin_email ?&gt; would do.

But I want to access these settings inside my JS as well. I have some tokens and other things stored inside there.

I tried doing this:

{% js %}
    let admin_email = {{ admin_email }};
    console.log(admin_email);
    alert(admin_email);
{% endjs %}


But in vain. How do I get the settings inside my JS variables?
{% js %}
    let admin_email = "{{ admin_email }}";
    console.log(admin_email);
    alert(admin_email);
{% endjs %}


Missed the "" around the assignment. :)