Where to add PopUp Java Script?

Hi, it might be silly to ask but I do not want to mess the whole theme. Where do I put the Javascript so that the PopUp is visible to all posts and pages?



Well, you definitely don’t put it in the theme.
Use one of the many available plugins, this for example: https://wordpress.org/plugins/wordpress-popup/