更新时间:2021-07-02 14:51:13
coverpage
Title Page
Copyright and Credits
Modern JavaScript Web Development Cookbook
Dedication
www.PacktPub.com
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Sections
Getting ready
How to do it...
How it works...
There's more...
There's more…
See also
Get in touch
Reviews
Working with JavaScript Development Tools
Introduction
Installing Visual Studio Code for development
How to do it…
How it works…
Extending Visual Studio Code
Adding Fira Code font for better editing
Adding npm for package management
Creating a project with npm
Installing packages for different purposes
Doing version control with Git
Formatting your source code with Prettier
Documenting your code with JSDoc
Adding code quality checks with ESLint
Adding Flow for data types checks
Configuring Flow's linting
Using Flow within VSC
Using Modern JavaScript Features
Adding types
Getting started
Basic types in Flow
Union types
Class types
Type aliases
Generic types
Opaque types for safer coding
Working with libraries
Working with strings
Interpolating in template strings
Tagged templates
Writing multiline strings
Repeating strings
Padding strings
Searching in strings
Trimming strings
Iterating over strings
Enhancing your code
Working in strict mode
Scoping variables
Spreading and joining values
Destructuring arrays and objects
Doing powers
Defining functions
Writing arrow functions
Returning values
Handling this in arrow functions
Defining types for arrow functions
Defining default argument values
Programming functionally