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

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.

主站蜘蛛池模板: 瑞昌市| 洪雅县| 青田县| 张家川| 普格县| 永城市| 玉林市| 鄂温| 仙游县| 双流县| 靖远县| 重庆市| 平利县| 黎平县| 阿拉善盟| 镇远县| 开封县| 泾川县| 尚义县| 吴桥县| 顺昌县| 邛崃市| 邢台县| 准格尔旗| 汕头市| 云安县| 会宁县| 安达市| 宜都市| 思茅市| 安国市| 海阳市| 和田县| 思茅市| 黑龙江省| 勃利县| 东乡族自治县| 桐梓县| 康保县| 城固县| 那坡县|