How to use variable in template literals containing a JS snippet?
I have a following piece of code ... $('head').append(`<script> const appName = 'PLACEHOLDER'; ... <script>`); I want to archive something like this ... const APP_NAME = 'PLACEHOLDER'; $('head').append(`<script> const appName = ${APP_NAME}; .....