Atjaunināt sīkdatņu piekrišanu
  • Formāts - PDF+DRM
  • Cena: 28,79 €*
  • * ši ir gala cena, t.i., netiek piemērotas nekādas papildus atlaides
  • Ielikt grozā
  • Pievienot vēlmju sarakstam
  • Šī e-grāmata paredzēta tikai personīgai lietošanai. E-grāmatas nav iespējams atgriezt un nauda par iegādātajām e-grāmatām netiek atmaksāta.
  • Formāts: 186 pages
  • Sērija : Quick Programming
  • Izdošanas datums: 04-Apr-2023
  • Izdevniecība: Chapman & Hall/CRC
  • Valoda: eng
  • ISBN-13: 9781000853735

DRM restrictions

  • Kopēšana (kopēt/ievietot):

    nav atļauts

  • Drukāšana:

    nav atļauts

  • Lietošana:

    Digitālo tiesību pārvaldība (Digital Rights Management (DRM))
    Izdevējs ir piegādājis šo grāmatu šifrētā veidā, kas nozīmē, ka jums ir jāinstalē bezmaksas programmatūra, lai to atbloķētu un lasītu. Lai lasītu šo e-grāmatu, jums ir jāizveido Adobe ID. Vairāk informācijas šeit. E-grāmatu var lasīt un lejupielādēt līdz 6 ierīcēm (vienam lietotājam ar vienu un to pašu Adobe ID).

    Nepieciešamā programmatūra
    Lai lasītu šo e-grāmatu mobilajā ierīcē (tālrunī vai planšetdatorā), jums būs jāinstalē šī bezmaksas lietotne: PocketBook Reader (iOS / Android)

    Lai lejupielādētu un lasītu šo e-grāmatu datorā vai Mac datorā, jums ir nepieciešamid Adobe Digital Editions (šī ir bezmaksas lietotne, kas īpaši izstrādāta e-grāmatām. Tā nav tas pats, kas Adobe Reader, kas, iespējams, jau ir jūsu datorā.)

    Jūs nevarat lasīt šo e-grāmatu, izmantojot Amazon Kindle.

Are you an experienced programmer who wants to get started quickly in JavaScript and the HTML DOM? This is your book.

Do you need encyclopedic knowledge of JavaScript and/or the HTML DOM? This book is not for you.

Are you a novice who wants to learn to program? This book is not for you. In fact, this language is not for you. Get a good Python book.

This book will get you programming in JavaScript as quickly as possible. In addition, it will provide you with a basic understanding of the Document Object Model, the massive data structure used to represent web pages. With these tools, you will be able to build interactive web pages.

If you program in C++ or Java, there are parts of the book you can skip over because the JavaScript statements are exactly the same. These parts are clearly marked.

JavaScript is the languagethe only languageused by browsers. To create interactive web pages, you need to know both JavaScript and the DOM. This book will get you started.

Recenzijas

When a gifted teacher presents a new concept, they first cover every needed building block. The new concept becomes such a necessary and obvious extension of those building blocks, it feels like something you already knew. That is how Dave Matuszeks books read. In sparse, concise language he tells you exactly what you most need to know about programming, and lays it all out so clearly and logically it seems inevitable. His cheerful, intuitive examples progress step by step from introductory to advanced stages carrying you along painlessly.

I cannot recommend this series highly enough to anyone wanting a quick primer on a language they have yet to use. Whether a computer science student or a self-taught programmer, there are treats in store.

- Martha Palmer, Arts and Sciences Professor of Distinction for Linguistics, and the former Helen & Hubert Croft Professor of Engineering in the Computer Science Department, University of Colorado Boulder, USA.

Dr. David Matuszek has written a great series of books on programming that will be of interest to many experienced programmers These short, well-written books can help programmers master a new language or technique rapidly and have fun doing so.

- Tim Finin, Willard and Lillian Hackerman Chair in Engineering and a Computer Science and Electrical Engineering professor at the University of Maryland, Baltimore County (UMBC).

Author xiii
Preface xv
Versions of JavaScript xvii
Chapter 1 Introduction
1(6)
1.1 Hello, World!
1(1)
1.2 JavaScript in the Browser
1(1)
1.3 Browser Consoles
2(1)
1.4 Running JavaScript
3(1)
1.5 Getting Input
4(1)
1.6 Producing Output
4(3)
Chapter 2 JavaScript: The Bare Minimum
7(42)
2.1 Comments
7(1)
2.2 Data Types
8(9)
2.2.1 Primitives
8(1)
2.2.2 User-Defined Objects
9(1)
2.2.3 Built-in Object Types
9(1)
2.2.4 Arrays
9(2)
2.2.5 Sets
11(1)
2.2.6 Maps
11(1)
2.2.7 Dates
12(2)
2.2.8 Regular Expressions
14(3)
2.3 Identifiers
17(1)
2.4 Let and Const
17(1)
2.5 Var
18(1)
2.6 Operators
19(2)
2.7 Equality and Identity
21(1)
2.8 Conversions
22(1)
2.9 Statements
22(20)
2.9.1 Semicolons
22(1)
2.9.2 Declarations
23(1)
2.9.3 Function Definitions
24(1)
2.9.4 Familiar Statements
25(1)
2.9.4.1 Assignment Statements
26(1)
2.9.4.2 Expressions
27(1)
2.9.4.3 Compound Statements
27(1)
2.9.4.4 If Statements
28(1)
2.9.4.5 While Loops
29(1)
2.9.4.6 Do-While Loops
30(1)
2.9.4.7 Traditional for Loops
31(1)
2.9.4.8 Scope in Loops
32(1)
2.9.4.9 Switch Statements
33(2)
2.9.4.10 Labeled Statements
35(1)
2.9.4.11 Break Statements
35(1)
2.9.4.12 Continue Statements
36(1)
2.9.4.13 Return Statements
37(1)
2.9.4.14 Empty Statements
38(1)
2.9.5 JavaScript-Specific Statements
38(1)
2.9.5.1 For/of
38(1)
2.9.5.2 For/in
39(1)
2.9.5.3 Throw
39(1)
2.9.5.4 Try-catch-finally
40(2)
2.9.5.5 The with Statement
42(1)
2.10 Example: Prime Numbers
42(1)
2.11 Testing
43(6)
2.11.1 The Mocha Test Framework
43(2)
2.11.2 Testing with Chai
45(1)
2.11.3 Testing Example
46(3)
Chapter 3 JavaScript: In More Detail
49(60)
3.1 Strict Mode
49(1)
3.2 Identifiers
50(1)
3.3 Destructuring
51(2)
3.4 Data Types
53(14)
3.4.1 Numbers
53(2)
3.4.2 Strings
55(1)
3.4.3 Booleans
56(1)
3.4.4 Symbols
57(2)
3.4.5 Arrays
59(1)
3.4.6 Sparse Arrays
59(1)
3.4.7 Sets
60(1)
3.4.8 Maps
61(1)
3.4.9 WeakMaps
62(1)
3.4.10 Promises
63(2)
3.4.11 Conversions
65(2)
3.5 Math
67(1)
3.6 Reserved Words
68(1)
3.7 Good Operators
69(2)
3.8 Operator Notes
71(1)
3.9 Bad Operators
72(1)
3.10 Functions
73(12)
3.10.1 Defining Functions
73(2)
3.10.2 Parameters and Arguments
75(2)
3.10.3 Functions Are Data
77(1)
3.10.4 Functions Are Objects
78(1)
3.10.5 Function Methods
79(1)
3.10.6 Closures
80(2)
3.10.7 Generators
82(1)
3.10.8 Iterators
83(2)
3.11 Objects
85(22)
3.11.1 Definition of Objects
85(2)
3.11.2 Creating Objects
87(3)
3.11.3 Copying Objects
90(1)
3.11.4 Methods
91(1)
3.11.5 Optional Chaining
91(1)
3.11.6 This
92(1)
3.11.7 Higher-Order Functions
93(2)
3.11.8 Prototypes
95(1)
3.11.9 Descriptors
96(2)
3.11.10 Classes and Inheritance
98(1)
3.11.10.1 Classes
98(4)
3.11.10.2 Inheritance
102(3)
3.11.10.3 Overriding Methods and Fields
105(1)
3.11.10.4 Class Prototypes
106(1)
3.12 Transpilers and Polyfills
107(1)
3.13 JSON
108(1)
Chapter 4 Client-Side JavaScript
109(38)
4.1 Essential HTML
109(1)
4.2 Adding JavaScript to HTML
110(1)
4.3 DOM Overview
111(2)
4.4 Graphical User Interfaces
113(16)
4.4.1 Events
113(1)
4.4.2 Widgets
113(1)
4.4.3 Buttons
114(1)
4.4.4 Finding Widgets
115(1)
4.4.5 Text Fields
116(1)
4.4.6 Buttons and Forms
117(3)
4.4.7 Form Verification
120(1)
4.4.8 Form Submission
121(1)
4.4.8.1 Get Requests
121(1)
4.4.8.2 Post Requests
122(1)
4.4.8.3 Other Requests
122(1)
4.4.9 Additional Text Widgets
122(2)
4.4.10 Other Input Widgets
124(1)
4.4.11 Events
125(4)
4.4.12 Bubbling
129(1)
4.5 Using the DOM
129(18)
4.5.1 The Window Object
129(1)
4.5.1.1 Window Properties
130(1)
4.5.1.2 Window Methods
131(1)
4.5.1.3 Window Example
132(2)
4.5.2 The Document Object
134(1)
4.5.2.1 Document Properties
134(1)
4.5.2.2 Finding Nodes
135(2)
4.5.2.3 Creating Nodes
137(1)
4.5.3 Node Objects
138(1)
4.5.3.1 Node Properties
138(1)
4.5.3.2 Node Methods
139(1)
4.5.4 Elements
140(1)
4.5.4.1 Element Properties
140(1)
4.5.4.2 Element Methods
140(2)
4.5.5 CharacterData
142(1)
4.5.6 Example: ShowTree
142(5)
Afterword 147(2)
Appendix A Array Methods 149(2)
Appendix B Higher-Order Methods 151(2)
Appendix C String Methods 153(4)
Appendix D Regular Expressions 157(4)
References 161(2)
Index 163
David L. Matuszek was Director of the Masters in Computer and Information Technology course at the University of Pennsylvania, USA (2001-2017). With 40 years teaching experience, and 45 years programming experience, David is skilled in both the design of innovative software systems and in teaching others how to master programming languages in an accessible and engaging way.