Javascript Absolute Beginner’s Guide, 3rd Edition
- Length: 624 pages
- Edition: 3
- Language: English
- Publisher: Que Publishing
- Publication Date: 2022-11-15
- ISBN-10: 0137959168
- ISBN-13: 9780137959167
- Sales Rank: #439538 (See Top 100 Books)
JavaScript Absolute Beginner’s Guide No experience necessary!
Make the most of JavaScript — even if you’ve never programmed anything before. This book is the fastest way to learn JavaScript and use it together with CSS3 and HTML5 to create powerful web and mobile experiences. Learn how to do what you want, the way you want, one incredibly easy step at a time. JavaScript has never been this simple!
This is the easiest, most practical beginner s guide to programming JavaScript with simple, reliable instructions for doing everything you really want to do! Here s a small sample of what you ll learn: Learn why JavaScript is awesome Organize your code with variables Understand how functions make your code reusable Use the popular if/else statement to help make a decision in code Learn about switch statements and when to use them Work with for, while, and do…while loops Learn how to use global and local scope Understand what closures are Learn about the various places your code can live Understand how to write comments and good commenting practices Learn about the basic types of objects you’ll run into in JavaScript Find out that pizza has an educational value beyond just being deliciously awesome Understand how text is treated in JavaScript Learn how to perform common string operations Use arrays to handle lists of data Learn to create custom objects Purchase of “JavaScript Absolute Beginner’s Guide” in any format includes free access to the online Web Edition, which provides several special features to help you learn: The complete text of the book online Short videos by the author introducing each chapter Interactive quizzes to test your understanding of the material Updates and corrections as they become available This Web Edition can be viewed on all types of computers and mobile devices with any modern web browser that supports HTML5.
Cover Page About This eBook Title Page Copyright Page Pearson’s Commitment to Diversity, Equity, and Inclusion Credits Contents at a Glance Reader Services Table of Contents About the Author About the Technical Editor Dedication Acknowledgments We Want to Hear from You! Introduction Parlez-Vous JavaScript? Contacting Me/Getting Help 1 Hello, World! What Is JavaScript? Hello, World! Statements, Expressions, and Functions I The Basic Stuff 2 Values and Variables Using Variables More Variable Stuff 3 Functions What Is a Function? A Simple Function Creating a Function That Takes Arguments Creating a Function That Returns Data 4 Conditional Statements: if, else, and switch The If/Else Statement Switch Statements Deciding Which to Use 5 Looping with for, while, and do…while! The for Loop The Starting Point Some for Loop Examples The Other Loops 6 Commenting Your Code…FTW! What Are Comments? Commenting Best Practices 7 Timers Delaying with setTimeout 8 Variable Scope Global Scope Local Scope Miscellaneous Scoping Shenanigans 9 Closures Functions Within Functions When the Inner Functions Aren’t Self-Contained 10 Where Should Your Code Live? Approach #1: All the Code Lives in Your HTML Document Approach #2: The Code Lives in a Separate File So, Which Approach to Use? 11 Console Logging Basics Meet the Console Displaying the Console If You Want to Follow Along Console Logging 101 II It’s an Object-Oriented World 12 Of Pizza, Types, Primitives, and Objects Let’s First Talk About Pizza From Pizza to JavaScript! What Are Objects? The Predefined Objects Roaming Around in JavaScript 13 Arrays Creating an Array Accessing Array Values Adding Items Removing Items Finding Items Merging Arrays Mapping, Filtering, and Reducing Arrays The Old School Way Modifying Each Array Item with map Getting One Value from an Array of Items A Short Foray into Functional Programming 14 Strings The Basics String Properties and Methods 15 Combining Strings and Variables Our Setup 16 When Primitives Behave Like Objects Strings Aren’t the Only Problem Let’s Pick on Strings Anyway Why This Matters 17 Numbers Using a Number Operators Incrementing and Decrementing Hexadecimal and Octal Values Special Values—Infinity and NaN The Math Object Random Numbers 18 Getters and Setters A Tale of Two Properties Meet Getters and Setters 19 A Deeper Look at Objects Meet the Object Creating Custom Objects The this Keyword 20 Using Classes The Class Syntax and Object Creation Extending Objects 21 Extending Built-in Objects Say Hello to prototype Again, Sort Of! Using a Subclassing Approach Extending Built-in Objects Is Controversial 22 Arrow Functions What Are Arrow Functions? Putting It All Together 23 Making Sense of this and More The this Keyword 101 24 Booleans and the Stricter === and !== Operators The Boolean Object The Boolean Function Strict Equality and Inequality Operators 25 Null and Undefined Null Undefined 26 All About JSON (JavaScript Object Notation) What Is JSON? Looking Inside a JSON Object Reading JSON Data Writing JSON Data? III Working with the DOM 27 JS, the Browser, and the DOM What HTML, CSS, and JavaScript Do HTML Defines the Structure Prettify My World, CSS! It’s JavaScript Time! Meet the Document Object Model 28 Finding Elements in the DOM Meet the querySelector Family It Really Is the CSS Selector Syntax 29 Modifying DOM Elements DOM Elements Are Objects, Sort Of! Let’s Actually Modify DOM Elements 30 Styling Our Content Why Would We Set Styles Using JavaScript? A Tale of Two Styling Approaches 31 Using CSS Custom Properties What Are CSS Custom Properties/Variables? Setting Complex Values Easily 32 Traversing the DOM Finding Your Way Around Putting It All Together 33 Creating and Removing DOM Elements Creating Elements Removing Elements Cloning Elements 34 Quickly Adding Many Elements into the DOM General Approach Getting Started 35 In-Browser Developer Tools Meet the Developer Tools IV Dealing with Events 36 Events What Are Events? Events and JavaScript A Simple Example The Event Arguments and the Event Type 37 Event Bubbling and Capturing Event Goes Down, Event Goes Up Meet the Phases Who Cares? Event, Interrupted 38 Mouse Events Meet the Mouse Events The MouseEvent Properties Dealing with the Mouse Wheel 39 Keyboard Events Meet the Keyboard Events Using These Events The Keyboard Event Properties Some Examples 40 Page Load Events and Other Stuff The Things That Happen During Page Load The DOMContentLoaded and load Events Scripts and Their Location in the DOM Script Elements: async and defer 41 Loading Script Files Dynamically The Basic Technique Running Our Dynamically Loaded Script First Running Dependent Code After Our Script File Has Loaded 42 Handling Events for Multiple Elements How to Do All This V Totally Useful Topics that Only Make Sense Now 43 Using Emojis in HTML, CSS, and JavaScript What Are Emojis Exactly? Emojis in HTML 44 Making HTTP/Web Requests in JavaScript The Example Meet Fetch Meet XMLHttpRequest 45 Accessing the Webcam The Example Overview of How This Works Adding the Code Examining the Code 46 Array and Object Destructuring Destructuring Examples 47 Storing Data Using Web Storage How Web Storage Works Getting Your Code On 48 Variable and Function Hoisting JavaScript and Compiler Behavior 49 Working with Sets Creating a Set, Part I Adding Items to a Set How Checking for Duplicates Works Creating a Set, Part 2 Checking the Size of Our Set Deleting Items from a Set Checking If an Item Exists Looping Through Items in a Set Entries, Keys, and Values 50 Conclusion Glossary Index Code Snippets
Donate to keep this site alive
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.