LibCoder

Quick JavaScript

1C Agda JavaScript
Quick JavaScript
Автор: Matuszek David
Дата выхода: 2023
Количество страниц: 187
Размер файла: 867,1 КБ
Тип файла: PDF
Добавил: LibCoder
Оглавление
Cover....1 Half Title....2 Title Page....4 Copyright Page....5 Dedication....6 Table of Contents....8 Author....14 Preface....16 Versions of JavaScript....18 Chapter 1: Introduction....20 1.1 Hello, World!....20 1.2 JavaScript in the Browser....20 1.3 Browser Consoles....21 1.4 Running JavaScript....22 1.5 Getting Input....23 1.6 Producing Output....23 Chapter 2: JavaScript: The Bare Minimum....26 2.1 Comments....26 2.2 Data Types....27 2.2.1 Primitives....27 2.2.2 User-Defined Objects....28 2.2.3 Built-In Object Types....28 2.2.4 Arrays....28 2.2.5 Sets....30 2.2.6 Maps....30 2.2.7 Dates....31 2.2.8 Regular Expressions....33 2.3 Identifiers....36 2.4 let and const....36 2.5 var....37 2.6 Operators....38 2.7 Equality and Identity....40 2.8 Conversions....41 2.9 Statements....41 2.9.1 Semicolons....41 2.9.2 Declarations....42 2.9.3 Function Definitions....43 2.9.4 Familiar Statements....44 2.9.4.1 Assignment Statements....45 2.9.4.2 Expressions....46 2.9.4.3 Compound Statements....46 2.9.4.4 If Statements....47 2.9.4.5 While Loops....48 2.9.4.6 Do-While Loops....49 2.9.4.7 Traditional For Loops....50 2.9.4.8 Scope in Loops....51 2.9.4.9 Switch Statements....52 2.9.4.10 Labeled Statements....54 2.9.4.11 Break Statements....54 2.9.4.12 Continue Statements....55 2.9.4.13 Return Statements....56 2.9.4.14 Empty Statements....57 2.9.5 JavaScript-Specific Statements....57 2.9.5.1 For/of....57 2.9.5.2 For/in....58 2.9.5.3 Throw....58 2.9.5.4 Try-catch-finally....59 2.9.5.5 The with Statement....61 2.10 Example: Prime Numbers....61 2.11 Testing....62 2.11.1 The Mocha Test Framework....62 2.11.2 Testing with Chai....64 2.11.3 Testing Example....65 Chapter 3: JavaScript: In More Detail....68 3.1 Strict Mode....68 3.2 Identifiers....69 3.3 Destructuring....70 3.4 Data Types....72 3.4.1 Numbers....72 3.4.2 Strings....74 3.4.3 Booleans....75 3.4.4 Symbols....76 3.4.5 Arrays....78 3.4.6 Sparse Arrays....78 3.4.7 Sets....79 3.4.8 Maps....80 3.4.9 WeakMaps....81 3.4.10 Promises....82 3.4.11 Conversions....84 3.5 Math....86 3.6 Reserved Words....87 3.7 Good Operators....88 3.8 Operator Notes....90 3.9 Bad Operators....91 3.10 Functions....92 3.10.1 Defining Functions....92 3.10.2 Parameters and Arguments....94 3.10.3 Functions Are Data....96 3.10.4 Functions Are Objects....97 3.10.5 Function Methods....98 3.10.6 Closures....99 3.10.7 Generators....101 3.10.8 Iterators....102 3.11 Objects....104 3.11.1 Definition of Objects....104 3.11.2 Creating Objects....106 3.11.3 Copying Objects....109 3.11.4 Methods....110 3.11.5 Optional Chaining....110 3.11.6 This....111 3.11.7 Higher-Order Functions....112 3.11.8 Prototypes....114 3.11.9 Descriptors....115 3.11.10 Classes and Inheritance....117 3.11.10.1 Classes....117 3.11.10.2 Inheritance....121 3.11.10.3 Overriding Methods and Fields....124 3.11.10.4 Class Prototypes....125 3.12 Transpilers and Polyfills....126 3.13 JSON....127 Chapter 4: Client-Side JavaScript....128 4.1 Essential HTML....128 4.2 Adding JavaScript to HTML....129 4.3 DOM Overview....130 4.4 Graphical User Interfaces....132 4.4.1 Events....132 4.4.2 Widgets....132 4.4.3 Buttons....133 4.4.4 Finding Widgets....134 4.4.5 Text Fields....135 4.4.6 Buttons and Forms....136 4.4.7 Form Verification....139 4.4.8 Form Submission....140 4.4.8.1 Get Requests....140 4.4.8.2 Post Requests....141 4.4.8.3 Other Requests....141 4.4.9 Additional Text Widgets....141 4.4.10 Other Input Widgets....143 4.4.11 Events....144 4.4.12 Bubbling....148 4.5 Using the DOM....148 4.5.1 The Window Object....148 4.5.1.1 Window Properties....149 4.5.1.2 Window Methods....150 4.5.1.3 Window Example....151 4.5.2 The Document Object....153 4.5.2.1 Document Properties....153 4.5.2.2 Finding Nodes....154 4.5.2.3 Creating Nodes....156 4.5.3 Node Objects....157 4.5.3.1 Node Properties....157 4.5.3.2 Node Methods....158 4.5.4 Elements....159 4.5.4.1 Element Properties....159 4.5.4.2 Element Methods....159 4.5.5 CharacterData....161 4.5.6 Example: ShowTree....161 Afterword....166 Appendix A: Array Methods....168 Appendix B: Higher-Order Methods....170 Appendix C: String Methods....172 Appendix D: Regular Expressions....176 References....180 Index....182

Описание

Ниже — практический обзор по теме «book».

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.

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

In addition, it will provide you with a basic understanding of the Document Object Model, the massive data structure used to represent web pages. This book will get you programming in JavaScript as quickly as possible. 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.

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

Файл доступен для загрузки ниже.

javascript book this will language pages wants started

Частые вопросы

Можно ли скачать «Quick JavaScript» бесплатно?

Да, «Quick JavaScript» доступна для бесплатного скачивания на нашем сайте в формате PDF. Ссылка на файл находится на этой странице.

В каком формате и какого размера файл?

Книга предоставляется в формате PDF, размер файла 867,1 КБ.

Кто автор и когда вышла книга?

автор — Matuszek David, издательство CRC Press is an imprint of Taylor & Francis Group, LLC, год выпуска 2023, 187 страниц.

О чём книга «Quick JavaScript»?

Are you an experienced programmer who wants to get started quickly in JavaScript and the HTML DOM?

Похожие материалы