Building Blocks of the Web: Javascript

Understanding the powerhouse of the Web

Evolution of Javascript

Marc Andreeseen founder of Netscape communications also had a vision where the web could become more dynamic with use of a scripting language that could easily interact with the DOM.

In May 1995, a man named Brendan Eich was employed by Netscape Communication to help create a 'language for the web' which is dynamic, powerful, reduce verbosity and a syntac thats easy to learn. A finishedprototype was made in 10 days.

The language had become well known for its client-side development, however a server-sdide implementation of Javascript was released in December 1995 (Netscape Enterprise Serbver)

There are many advantages and uses of Javascipt that made it as popular as it is today. Some of these features may be its easy to understand Java like syntax, Functions as First-Objects, and a preference over Objects vs Primatives

in 2005, a paper was released by Jesse James Garrett, explaining the technologies behind Javascript as the backbone of the web, introducing the term 'AJAX' as a way of building modern websites. Javascript became increasingly popular as a web language from these years, and is the standard used everywhere today.

In 2000, the first popular JavaScript framework was released. It was called Dynamic HTML (DHTML). DHTML was used to make basic changes to web pages. The sort of changes you would make with CSS easily these days. DHTML was released in 2000. In 2006, a lot of frameworks and libraries were released. The most popular being jQuery.

Uses

Javascript is a language that allows you to implement complex features on web pages that dynamically update. Such as displaying timely content updates, interactive maps, animated 2D/3D graphics, scrolling video etc. It adds more functionality to HTML and CSS, because it acts as a 'information gatherer language' behind the scenes. When referring to 'behind the scenes' work, javascript can execute in the background to produce and event or display new HTML information after clicking a button for example


In the below example, we will use Javascript (AJAX) to gather recent information from the Australian Beaureu of Meteorology and Display the weather gathered from their database (Something that is impossible in HTML and CSS alone with their static viewing environment)

Weather in Perth City

Gathers weather information (around ~5 secs)

Location:

~

Temperature:

~

Date Recorded:

~


COVID-19 Tracker

Shows the amount of cases, and deaths of COVID-19 (Coronavirus) in our State of Western Australia

Country:

~

State:

~

Number of Cases:

~

Deaths:

~

Date Recorded:

~


Using javascript, we can dynamically change the content displayed as HTML to us, whenever we do some sort of action like click a button or hover over something


JavaScript Can Validate Input

Please input a number between 1 and 300:


Animations in Javascript