Why Javascript?

Written by Supakorn Laohasongkram on August 1st, 2014

Why Javascript? Do we need Javascript in our web page? And what can it do? If I already know HTML and CSS--or the basic building blocks from a website--but you never used Javascript, do I really need Javascript? In this article I will help you tackle this questions to tell you the importance of Javascript in web development.


First of all, if you are completely new to web development then let's start off by understanding HTML and CSS. If one could compare web development to drawing, then HTML would be the pen which structures and outlines the picture. While CSS is the color. After HTML has put everything layed out CSS puts color into the pieces of the picture.


Now, with HTML and CSS, you could produce a slide show of different static pictures one after another or one linking to the another. However, that's about it. If you want your website to interact like facebook, you can't. And this is where programming language like Javascript comes in.


Javascript is a programming language. And by integrating programming language into HTML and CSS what you get is an interactive and dynamic website. (like a interative picture? a iPad? haha) By simply integrating a programming like Javascript into a website, it almost give a sense that your website is actually a living thing--it's alive!--since now it could interactive with a user and it produces different output depending your input. This, I would say, is the major reason why Javascript is important for web developer.


On a more specific note, according to my research, Javascript is could manage client-side programming by giving the user immediate feedback instead of going back and forth between the client and the server. As a result, Javascript could greatly decreases the traffic time and increases performance for your website!


Even though I am pretty new to Javascript, I am already starting to like it! It's fun to make your website interactive with the user. And it's fun to make your website do things for you. I would highly recommend anyone new who wanted to try integrating Javascript into their HTML and CSS with this course on CodeAcademy.


Thanks for reading!


© Copyright Supakorn Laohasongkram 2014