A JavaScript can be a small, embedded program that can add interactivity to your website. For example, a script could generate a pop-up alert box message.