官术网_书友最值得收藏!

Chapter 1. Introduction

What do Yahoo! Maps, Google Maps, Yahoo! Mail, My Yahoo!, Gmail, Digg, YouTube and a plethora of other popular "Web 2.0" applications have in common? They all offer rich and responsive user interfaces, heavily employing code written in the JavaScript language. JavaScript started with simple one-liners embedded in HTML, but is now used in much more sophisticated ways. Developers leverage the object-oriented nature of the language to build scalable code architectures made up of reusable pieces. JavaScript provides behavior, the third pillar in today's paradigm that sees web pages as consisting of three clearly distinguishable parts: content (HTML), presentation (CSS), and behavior (JavaScript).

JavaScript programs run inside a host environment. The web browser is the most common environment, but it is not the only one. Using JavaScript, you can create all kinds of widgets, application extensions, and other pieces of software. Learning JavaScript is a pretty good deal: you learn one language and can then code all kinds of different applications.

This book is about JavaScript and focuses on its object-oriented nature. The book starts from zero, and does not assume any prior programming knowledge. Although there is one chapter dedicated to the web browser environment, the rest of the book is about JavaScript in general, so is applicable to all environments.

Let's start with the first chapter, which gives you an overview of the story behind JavaScript. It also introduces the basic concepts you'll encounter in discussions on object-oriented programming.

主站蜘蛛池模板: 渝中区| 淮阳县| 封丘县| 二连浩特市| 旬阳县| 沾益县| 襄垣县| 永修县| 醴陵市| 洱源县| 寿阳县| 无为县| 泌阳县| 宜都市| 竹溪县| 荣昌县| 南溪县| 合山市| 从江县| 东平县| 浙江省| 项城市| 确山县| 虹口区| 柳林县| 大兴区| 德令哈市| 西安市| 望城县| 克什克腾旗| 文安县| 额尔古纳市| 安国市| 吴桥县| 霍林郭勒市| 馆陶县| 玛多县| 清流县| 融水| 开封市| 高雄市|