Skip to main content

2017 | Buch

JavaScript Recipes

A Problem-Solution Approach

insite
SUCHEN

Über dieses Buch

This comprehensive book is your go-to reference for tackling common and advanced JavaScript tasks. JavaScript is the world’s most popular client-side scripting language and is gaining popularity on the server. Using a problem-solution approach, this book takes you from language basics like built-in objects and flow control all the way to advanced optimization techniques, frameworks and Node.js. Quickly discover solutions to common problems, best practices you can follow, and everything JavaScript has to offer.With JavaScript Recipes you will learn language fundamentals like types, conversions, execution contexts, expressions, operators, statements, and built-in objects. With this book you'll be able to explore and make the most of your script’s host environment and how to create your own JavaScript host using Google’s V8 engine. Employ advanced optimization techniques to create scripts that execute as fast, or faster, than native executables.JavaScript Recipes shows you how to avoid wasting development time and concentrate on developing cutting-edge applications. You’ll see how much quicker and efficient it is to develop with JavaScript. Start becoming a JavaScript pro with JavaScript Recipes today.

Inhaltsverzeichnis

Frontmatter
Chapter 1. Working with JavaScript Datatypes
Abstract
When programming (just like in algebra), you need to be able to assign a variable piece of data to a keyword that you can reference in your code, for example x = 5.
Russ Ferguson, Keith Cirkel
Chapter 2. Working with Expressions
Abstract
You want to add some numbers together.
Russ Ferguson, Keith Cirkel
Chapter 3. Working with Strings
Abstract
You want to have a better understanding of Unicode strings.
Russ Ferguson, Keith Cirkel
Chapter 4. Working with Numbers and Math
Abstract
Receive a value as a string and convert it to a number.
Russ Ferguson, Keith Cirkel
Chapter 5. Working with Bitwise Operations Against 32-Bit Integers
Abstract
A 32-bit integer is vastly different from a variable bit floating-point number, which is the standard type of number in JavaScript. 32-bit integers can only be created using bitwise operators, which will be covered all throughout this chapter.
Russ Ferguson, Keith Cirkel
Chapter 6. Dates and Times
Abstract
You need to get date and time information.
Russ Ferguson, Keith Cirkel
Chapter 7. Working with Arrays
Abstract
You want to hold on to information in sequence without creating multiple variables.
Russ Ferguson, Keith Cirkel
Chapter 8. Working with Arrays in Loops
Abstract
You want to iterate through all the values of an array-like object where order is important.
Russ Ferguson, Keith Cirkel
Chapter 9. Working with Objects
Abstract
You want to know what the difference is between creating an object using the new operator or an object literal.
Russ Ferguson, Keith Cirkel
Chapter 10. Working with Sets
Abstract
In what situation would you use a set object over an array?
Russ Ferguson, Keith Cirkel
Chapter 11. Working with Maps
Abstract
When is it better to use a map rather than an object?
Russ Ferguson, Keith Cirkel
Chapter 12. Working with Functions
Abstract
You want to know how many ways there are to create a function.
Russ Ferguson, Keith Cirkel
Chapter 13. Working with Generators
Abstract
You want to know what a generator is and how you make one.
Russ Ferguson, Keith Cirkel
Chapter 14. Working with Template Literals
Abstract
You want to know how to use a template literal in a project.
Russ Ferguson, Keith Cirkel
Chapter 15. Working with Symbols
Abstract
You want to know why and how to use symbols in a project.
Russ Ferguson, Keith Cirkel
Chapter 16. Working with Proxies
Abstract
What is a proxy and when should you use one?
Russ Ferguson, Keith Cirkel
Chapter 17. Working with Classes
Abstract
How do you create a class using either ECMAScript 5 or ECMAScript 6?
Russ Ferguson, Keith Cirkel
Chapter 18. Working with Events
Abstract
What are DOM events and how do you handle them?
Russ Ferguson, Keith Cirkel
Chapter 19. Debugging and Handling Exceptions
Abstract
How do errors occur and can you create an error object?
Russ Ferguson, Keith Cirkel
Chapter 20. Working with Regular Expressions
Abstract
You want to know what a regular expression is and how to use one in JavaScript.
Russ Ferguson, Keith Cirkel
Chapter 21. Working with Asynchronous Control Flow and Promises
Abstract
You want a better understanding of asynchronous control flow.
Russ Ferguson, Keith Cirkel
Backmatter
Metadaten
Titel
JavaScript Recipes
verfasst von
Russ Ferguson
Keith Cirkel
Copyright-Jahr
2017
Verlag
Apress
Electronic ISBN
978-1-4302-6107-0
Print ISBN
978-1-4302-6106-3
DOI
https://doi.org/10.1007/978-1-4302-6107-0