Why We Need JavaScript
JavaScript was built specifically as a programming language for the World Wide Web. It’s sole purpose was to provide a way to build interactivity into web pages. As such, it joined HTML and CSS as being a regular and indispensible staple of modern web development.
In its early days, JavaScript was “the mover” for web pages. You could build simple scripts to dynamically change the content of the web page, validate web forms, handle animations, and interact with the user.
While we still use JavaScript for those things today, we can do a whole lot more! JavaScript has grown, and now we can use it to build complex applications for the browser, desktop, mobile, and server environments.
On this site, we will explore JavaScript for people just starting out with web development. It’s assumed you have a basic understanding of HTML and CSS, since our focus will be on the browser environment and web pages.

Where JavaScript Fits In
For the web, the HTML language provided a way to describe content. By wrapping text in tags, you could indicate the meaning and purpose of the text.
If you were writing a paragraph of content, you would use a <p>
tag. If you need a heading for your page, you could use an <h1>
tag. There are tags you can use when you wanted to include a short quote (<q>
), make some text stand out (<b>
or <strong>
), or to emphasize something (<i>
or <em>
). Did you need to include a lengthy quote? Then you could use a <blockquote>
. And, of course, if you want some picture on your page, you could use the <img>
tag to tell the browser where to find the image. (You might even put the image tag alongside a <figcaption>
inside a <figure>
tag.)
<h1>Introducing JavaScript</h1>
<p>JavaScript was created by <strong>Brendan Eich</strong> in May, 1995. He created it in <em>10 days</em>!</p>
<figure> <figcaption>Brendan Eich</figcaption> <img src='./img/Brendan-Eich.jpg' alt='Creator of JavaScript'></figcaption>
Content is king. It drives everything about a web page. But no one wants their content to look bland. That’s where CSS comes in. CSS was created to compliment HTML by adding presentation! CSS allowed web developers to control and customize the look and feel of their websites. With CSS, you could make your content (HTML) pleasing to the eye, thereby driving up interest in what you have to say.
JavaScript is to HTML what batteries are to a toy: it makes our websites work. If HTML is for content and CSS is for presentation, then JavaScript is for functionality. By including JavaScript on our web pages, we change our static content into something that the user can really interact with.
Fast-Forward to Today

It’s hard to imagine where we would be without JavaScript. It is used for everything from subtle changes in viewing a page to advanced animations and building full-fledged applications.
Where JavaScript was once only used in the browser, now it can be used on the server and even as part of desktop applications.
As a web developer, you are (probably) using Visual Studio Code on your computer. Did you know that the core of VS Code is “just” a web application? VS Code is built on Electron - a framework that allows you to “build cross-platform desktop apps with JavaScript, HTML, and CSS”. Think of all the functionality built into VS Code and you might start to grasp how far you can go when you learn how to code in JavaScript.
Learn JavaScript
As you might imagine, it can take years to get really good at JavaScript. But you might be surprised at how much you can accomplish in just a short amount of time.
On this site, we have a number of different tutorials to help you learn the fundamentals of JavaScript. From the tutorials to how-to guides along with references and explanations, you can use this site as a launching point in your JavaScript journey. Wonderful discoveries await — see where it takes you!
Try the JavaScript QuickstartFoundations
- Querying the DOM
- Variables, Values and DataTypes
- Functions
- Event Handlers
- Flow-Control Statements
- Arrays
- Objects
- More to come soon
DOM API and AJAX
- More to come soon
Simple Node Projects
- More to come soon