Code Fellows Reading Notes

Dynamic Web Pages

JavaScript is a just-in-time (or runtime) compiled language that can be used to add interactivity and dynamic elements to your site. Although people typically think of the browser when JavaScript comes to mind, it can be used in many different environments (like Node.js on the back-end).

Embed or Include

Much like CSS, JavaScript can be included within your HTML file, or can be contained within an external file. A < script > element is used to add JavaScript directly to an HTML file.

Output

JavaScript can display output in multiple places, so choose what’s right for your needs.

Input

At some point, you’re going to want to add interactivity to your site by receiving input from the user. Two methods that utilize pop-ups are the propmpt() and confirm() functions.