You haven’t given us enough information.
Please provide a link to a page on your site where we can see this. Thanks.
Where is this js from?
How are you enqueuing it?
I’m using the Survey.js library to develop a custom survey for the webpage: http://adilum.com and I’m loading it like this: <script type=”text/javascript” src=”/scripts/emailpage.js”></script>
See the function wp_enqueue_script. Add a callback function and hook it to the wp_enqueue_scripts action per https://developer.wordpress.org/reference/functions/wp_enqueue_script/
Or, stop development with JavaScript and use PHP7. A simple includes then is all that is needed.
Thank you for your responses! I tried enqueuing the script, but it’s not loading the survey.