Chapter 3.1 — Programming in JavaScript.
What is JavaScript?
You've learned about how the core architecture of a website is built, how it is styled, and what good design looks like. The question remains: how do we make our websites interactive?
We use JavaScript, an object-oriented programming language, to write logic that allows our webistes to have interactivity. For example, we can:
- Implement user registration
- Book a ticket
- Create an online store
- Share photos
- Write messages
The possibilites are endless!
JavaScript
JavaScript is a frontend programming language, meaning that it is used by frontend web developers to create interfaces and user-centered features. You can think of HTML, CSS, and even JavaScript files as simple text files that contain keywords. Browsers use these keywords at the time of running your site to create a stunning website to your specifications. The browser can differentiate between HTML, CSS, and JavaScript files at runtime because of the extension you add at the end.
HTML files will use a
.htmlextention. CSS and JavaScript files use.cssand.js, respectively.