The World's Most Misunderstood Programming Language: Chapter 1
The World's Most Misunderstood Programming Language: Chapter 1
The World's Most Misunderstood Programming Language: Chapter 1
In this chapter, you discover what JavaScript is and a little bit of the history
of the language. You also find out what JavaScript does and why you need to
know it.
Don’t forget to visit the website to check out the online exercises relevant to
this chapter!
8 Part I: Getting Started with JavaScript
What Is JavaScript?
Back in the very early days of the web, browsers were simple readers for web
pages (see Figure 1-1). They had virtually no capabilities themselves, except
for the ability to display text in various sized fonts. As soon as Microsoft
released its Internet Explorer browser, the browser wars were on, and the fea-
tures started flying! One browser introduced the ability to display images, then
another introduced the capability to have different fonts, and then blinking
text, moving text, and all sorts of other wacky capabilities were introduced!
Figure 1-1:
The first
web brow
sers weren’t
much to
look at.
It wasn’t long before someone got the idea that browsers could actually do
useful things themselves, rather than just acting as fancy document display
programs.
JavaScript grows up
Now entering its third decade, JavaScript has become the world’s most
widely used programming language and virtually every personal computer in
the world has at least one browser on it that can run JavaScript code.
Figure 1-2:
JavaScript
made it pos
sible to have
snowflakes
falling on
your web
page.
Figure 1-3:
Program
ming
languages
are clas
sified
according
to when the
compilation
takes place.