The first button triggers a pop up window using inline javascript placed in the opening button tag:
The second button is created using internal JavaScript placed within the script tag
The third button triggers a popup using external JavaScript placed in the script.js file: