JavaScript for PHP Developers

A Concise Guide to Mastering JavaScript

Specificaties
Paperback, 143 blz. | Engels
O'Reilly | 1e druk, 2013
ISBN13: 9781449320195
Rubricering
Hoofdrubriek : Computer en informatica
O'Reilly 1e druk, 2013 9781449320195
Verwachte levertijd ongeveer 16 werkdagen

Samenvatting

If you want to significantly expand your web development skills beyond PHP, this practical, hands-on book teaches you ECMAScript—the core JavaScript language-from the ground up. You'll discover some similarities between JavaScript and PHP, such as conditions and loops, but the primary focus is on JavaScript's unique object creation, classes, prototypes, and inheritance.

JavaScript knowledge is essential for working with today's Web, whether you're building applications for the client, the server, or for mobile use-and your PHP experience gives you a head start. This book will help you become fluent with JavaScript quickly, and then serve as a handy reference once you start coding.

- Explore JavaScript syntax, including variables, arrays, loops, and conditions
- Learn how functions are important in JavaScript-and why they're actually objects
- Delve into JavaScript's object-oriented features, including prototypes, code reuse, and inheritance
- Examine the built-in API and explore its global functions, properties, and objects
- Learn about updates in ECMAScript5, the latest version of the standard
- Use common design patterns to organize your code in large applications

Specificaties

ISBN13:9781449320195
Taal:Engels
Bindwijze:paperback
Aantal pagina's:143
Uitgever:O'Reilly
Druk:1
Verschijningsdatum:20-4-2013

Over Stoyan Stefanov

Stoyan Stefanov is a Yahoo! web developer and an author, contributor, and tech reviewer of various O'Reilly books. He speaks regularly about web development topics at conferences and on his blog at www.phpied.com. Stoyan is the creator of the smush.it image optimization tool, YUI contributor and architect of Yahoo's performance optimization tool YSlow 2.0.

Andere boeken door Stoyan Stefanov

Inhoudsopgave

Acknowledgments
Preface

1. Introduction
-Scope of This Book
-The Language
-Learning Environment
-Longer Examples
-Let's Get Started

2. JavaScript Syntax
-Variables
-Values
-Arrays
-Conditions
-while and for Loops
-for-in Loops
-Miscellaneous Operators

3. Functions
-Default Parameters
-Any Number of Arguments
-arguments.length Trick
-Return Values
-Functions Are Objects
-A Different Syntax
-Scope
-Hoisting
-Closures
-Scope Chain
-Immediate Functions
-Passing and Returning Functions

4. Object-Oriented Programming
-Constructors and Classes
-Prototypes
-Object Literals
-Fancy Arrays
-Own Properties
-Inheritance

5. The Built-In API
-The Global Object
-Global Properties
-Global Functions
-Built-In Constructors
-Constructors Review

6. ECMAScript 5
-Strict Mode
-Property Attributes
-New Object APIs
-Array Additions
-String Trimming
-New in Date
-Function.prototype.bind()
-JSON
-Shims

7. JavaScript Patterns
-Private Properties
-Revealing Pattern
-Constants
-Namespaces
-Modules
-CommonJS Modules
-AMD
-Design Patterns
-Documentation and Testing

Index

Net verschenen

Rubrieken

Populaire producten

    Personen

      Trefwoorden

        JavaScript for PHP Developers