I recently added a JavaScript file that pulls JSON data and updates the div
tag on specific page of my WordPress, now to apply the JavaScript file to the page I added to header tag in the theme and secondly this JavaScript is getting called for every page/blog/ URL of my WordPress when I want it to execute only for specific page.
How can I have JavaScript script tag called for the specific page instead of all pages? I do not want to apply it in theme because now I am stuck with the current theme.