Scott Adam D., MacDonald Matthew, Powers Shelley - JavaScript Cookbook. Programming The Web (Third Edition).pdf
(
9077 KB
)
Pobierz
JavaScript
Cookbook
Programming
the Web
Adam D. Scott,
Matthew MacDonald
& Shelley Powers
ird n
Th itio
Ed
THIRD EDITION
JavaScript Cookbook
Adam D. Scott, Matthew MacDonald,
and Shelley Powers
JavaScript Cookbook, Third Edition
by Adam D. Scott, Matthew MacDonald, and Shelley Powers
Copyright © 2021 Adam D. Scott and Matthew MacDonald. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://oreilly.com). For more information, contact our corporate/institutional
sales department: 800-998-9938 or
corporate@oreilly.com.
Acquisitions Editor:
Jennifer Pollock
Development Editor:
Angela Rufino
Production Editor:
Katherine Tozer
Copyeditor:
Sonia Saruba
Proofreader:
James Fraleigh
July 2021:
Third Edition
Indexer:
Potomac Indexing, LLC
Interior Designer:
David Futato
Cover Designer:
Karen Montgomery
Illustrator:
Kate Dullea
Revision History for the Third Edition
2021-07-16:
First Release
See
http://oreilly.com/catalog/errata.csp?isbn=9781492055754
for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
JavaScript Cookbook,
the cover image,
and related trade dress are trademarks of O’Reilly Media, Inc.
The views expressed in this work are those of the authors, and do not represent the publisher’s views.
While the publisher and the authors have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the authors disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is subject to open source
licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.
978-1-492-05575-4
[LSI]
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Part I.
The JavaScript Language
2
3
7
9
11
13
16
20
21
24
28
31
35
38
40
42
43
45
46
47
1. Setting Up a Development Environment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Choosing a Code Editor
1.2 Using the Developer Console in Your Browser
1.3 Running Blocks of Code in the Developer Console
1.4 Using Strict Mode to Catch Common Mistakes
1.5 Filling in HTML Boilerplate with Emmet Shortcuts
1.6 Installing the npm Package Manager (with Node.js)
1.7 Downloading a Package with npm
1.8 Updating a Package with npm
1.9 Setting Up a Local Test Server
1.10 Enforcing Code Standards with a Linter
1.11 Styling Code Consistently with a Formatter
1.12 Experimenting in a JavaScript Playground
2. Strings and Regular Expressions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2.1 Checking for an Existing, Nonempty String
2.2 Converting a Numeric Value to a Formatted String
2.3 Inserting Special Characters
2.4 Inserting Emojis
2.5 Using Template Literals for Clearer String Concatenation
2.6 Performing a Case-Insensitive String Comparison
2.7 Checking If a String Contains a Specific Substring
2.8 Replacing All Occurrences of a String
iii
Plik z chomika:
george.mouflon
Inne pliki z tego folderu:
Horstmann Cay - Big Java, Late Objects (Second Edition).pdf
(127846 KB)
Dean John, Dean Raymond - Introduction To Programming With Java. A Problem Solving Approach (Third Edition).pdf
(94924 KB)
Ackermann Philip - JavaScript, The Comprehensive Guide.epub
(20734 KB)
bin Uzayr Sufyan - Conquering JavaScript, Three.js.pdf
(11944 KB)
Horstmann Cay - Big Java, Early Objects (7th Edition).pdf
(44199 KB)
Inne foldery tego chomika:
Android
Art
Artificial Intelligence
Biology
C(++)
Zgłoś jeśli
naruszono regulamin