万本电子书0元读

万本电子书0元读

顶部广告

Mastering JavaScript电子书

售       价:¥

11人正在读 | 0人评论 9.8

作       者:Ved Antani

出  版  社:Packt Publishing

出版时间:2016-01-30

字       数:236.8万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Explore and master modern JavaScript techniques in order to build large-scale web applicationsAbout This BookWrite powerful code with the high-level functions that JavaScript offersTest and debug issues with JavaScript code using various modern mechanismsOffers an expert's eye on the latest ES6 features and how these advanced tasks fit together in JavaScript as a wholeWho This Book Is ForThis book is ideal for web developers who are looking to master modern JavaScript concepts and design principles. You should already have an intermediate level of JavaScript knowledge before starting this book.What You Will LearnGet a run through of the basic JavaScript language constructsGet familiar with the Functions and Closures of JavaScriptExplore Regular Expressions in JavaScriptCode using the powerful object-oriented feature in JavaScriptTest and debug your code using JavaScript strategiesMaster DOM manipulation, cross-browser strategies, and ES6Understand the basic concurrency constructs in Java* and best performance strategiesLearn to build scalable server application in JavaScript using Node.jsIn DetailJavaScript is a high-level, dynamic, untyped, lightweight, and interpreted programming language. Along with HTML and CSS, it is one of the three essential technologies of World Wide Web content production, and is an open source and cross-platform technology. The majority of websites employ JavaScript, and it is well supported by all modern web browsers without plugins. However, the JavaScript landscape has changed dramatically in recent years, and you need to adapt to the new world of JavaScript that people now expect. Mastering modern JavaScript techniques and the toolchain are essential to develop web-scale applications.Mastering JavaScript will be your companion as you master JavaScript and build innovative web applications. To begin with, you will get familiarized with the language constructs and how to make code easy to organize. You will gain a concrete understanding of variable scoping, loops, and best practices on using types and data structures, as well as the coding style and recommended code organization patterns in JavaScript. The book will also teach you how to use arrays and objects as data structures. You will graduate from intermediate-level skills to advanced techniques as you come to understand crucial language concepts and design principles. You will learn about modern libraries and tools so you can write better code.By the end of the book, you will understand how reactive JavaScript is going to be the new paradigm.Style and approachThis is a comprehensive guide with a clear focus on practical use cases and patterns. Each chapter consists of best practices, useful advice, and a bunch of easy-to-follow examples that will build up your skills as you advance through the book.
目录展开

Mastering JavaScript

Table of Contents

Mastering JavaScript

Credits

About the Author

About the Reviewer

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. JavaScript Primer

A little bit of history

How to use this book

Hello World

An overview of JavaScript

Comments

Variables

Constants

Number

String

Undefined values

Booleans

The instanceof operator

Date objects

The + operator

The ++ and -- operators

Boolean operators

Equality

Strict equality using ===

Weak equality using ==

JavaScript types

Automatic semicolon insertion

JavaScript style guide

Whitespaces

Parentheses, line breaks, and braces

Quotes

End of lines and empty lines

Type checking

Type casting

Conditional evaluation

Naming

The eval() method is evil

The strict mode

Enabling the strict mode for an existing code can break it

Package with care

Variables must be declared in strict mode

The eval() function is cleaner in strict mode

Features that are blocked in strict mode

Running JSHint

Summary

2. Functions, Closures, and Modules

A function literal

A function declaration

Functions as data

Scoping

Global scope

Local scope

Function-level scope versus block-level scope

Inline function expressions

Block scopes

Function declarations versus function expressions

The arguments parameter

The this parameter

Invocation as a function

Invocation as a method

Invocation as a constructor

Invocation using apply() and call() methods

Anonymous functions

Anonymous functions while creating an object

Anonymous functions while creating a list

Anonymous functions as a parameter to another function

Anonymous functions in conditional logic

Closures

Timers and callbacks

Private variables

Loops and closures

Modules

Stylistic considerations

Summary

3. Data Structures and Manipulation

Regular expressions

Exact match

Match from a class of characters

Repeated occurrences

Alternatives – OR

Beginning and end

Backreferences

Greedy and lazy quantifiers

Arrays

Maps

Sets

A matter of style

Summary

4. Object-Oriented JavaScript

Understanding objects

Behavior of JavaScript objects

Prototypes

Instance properties versus prototype properties

Inheritance

Getters and setters

Summary

5. JavaScript Patterns

Design patterns

The namespace pattern

The module pattern

ES6 modules

The factory pattern

The mixin pattern

The decorator pattern

The observer pattern

JavaScript Model-View-* patterns

Model-View-Controller

Models

Views

Controllers

The Model-View-Presenter pattern

Model-View-ViewModel

Summary

6. Testing and Debugging

Unit testing

Test-driven development

Behavior-driven development

JavaScript debugging

Syntax errors

Using strict

Runtime exceptions

Console.log and asserts

Chrome DevTools

Summary

7. ECMAScript 6

Shims or polyfills

Transpilers

ES6 syntax changes

Block scoping

Default parameters

Spread and rest

Destructuring

Object literals

Template literals

Maps and Sets

Symbols

Iterators

For..of loops

Arrow functions

Summary

8. DOM Manipulation and Events

DOM

Accessing DOM elements

Accessing specific nodes

Chaining

Traversal and manipulation

Working with browser events

Propagation

jQuery event handling and propagation

Event delegation

The event object

Summary

9. Server-Side JavaScript

An asynchronous evented-model in a browser

Callbacks

Timers

EventEmitters

Modules

Creating modules

npm

Installing packages

JavaScript performance

JavaScript profiling

The CPU profile

The Timeline view

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部