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

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.

主站蜘蛛池模板: 凌海市| 临漳县| 邵阳县| 永泰县| 石门县| 沂水县| 临邑县| 舟山市| 湖北省| 惠水县| 偏关县| 清远市| 岳池县| 昌乐县| 合山市| 山西省| 沁源县| 台山市| 阿拉善盟| 渝北区| 如东县| 汝州市| 昂仁县| 奈曼旗| 凤阳县| 芜湖市| 辛集市| 密云县| 股票| 城步| 金沙县| 洛扎县| 化德县| 金沙县| 含山县| 松原市| 万山特区| 禹城市| 河北区| 柳州市| 山丹县|