Modern JavaScript Web Development Cookbook.pdf

所需积分/C币:35 2019-06-25 08:10:10 15.89MB PDF
收藏 收藏

JavaScript has evolved into a language that you can use on any platform. Modern JavaScript Web Development Cookbook is a perfect blend of solutions for traditional JavaScript development and modern areas that developers have lately been exploring with JavaScript. This comprehensive guide teaches you how to work with JavaScript on servers, browsers, mobile phones and desktops.
Modern JavaScript Web development Cookbook Copyright C 2018 Packt Publishing All rights reserved. No part of this book may be reproduced stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of the information presented However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information Commissioning editor Kunal chaudhari Acquisition Editor: Larissa Pinto Content Development Editor: Flavian Vaz, Onkar Wani Technical Editor: Rutuja vaze Copy Editor: Safis Editing Project Coordinator: Kinjal Bari Proofreader: Safis Editing Indexer: Rekha nair Graphics: Alishon Mendonsa Production Coordinator: Deepika naik First published December 2018 Production reference: 1211218 Published by Packt Publishing Ltd L 35 Livery street Birmingham B 3 2PB, UK ISBN978-1-78899-2749 This book is more than deservedly dedicated, with my continued love, to Sylvia tosar. Mapt napt. lo Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website Why subscribe? Spend less time learning and more time coding with practical eBooks and Videos from over 4, 000 industry professionals Improve your learning with Skill Plans built especially for you Get a free e Book or video every month Mapt is fully searchable Copy and paste, print, and bookmark content PacktPub, com Did you know that Packt offers e Book versions of every book published, with PDF and epubfilesavailableYoucanupgradetotheebooKversionatwww.packtpub.comandasa print book customer, you are entitled to a discount on the ebook copy. Get in touch with us at service @packtpub com for more details Atwww.Packtpub.comyoucanalsoreadacollectionoffreetechnicalarticlessignupfora range of free newsletters, and receive exclusive discounts and offers on packt books and eBooKs Contributors About the author Federico Kereki is a uruguayan systems engineer with a master's degree in education, and over 30 years experience as a consultant, system developer, university professor, and writer. He is currently a subject matter expert at Globant, and he has taught Cs courses at Universidad de la republica, Universidad ORT Uruguay and Universidad de la empresa He has written for the linux Journal and the linuxpro magazine in the USa, Linux and Mundo Linux in Europe and websites such as Linux. com and IBM developer Works. He has also written booklets on computer security, and two books-Essential GWT, and Mastering JavaScript Functional programming This book couldn't have been possible without the continued support from my wife Sylvia Tosar, who provided everything so I could work on this book- which was started while in a stint working in Pune, India, 10,000 miles away from home; continued for a short while in London, England; and only finished back home in Montevideo, uruguay but always with her by my side, in person or thanks to the internet. About the reviewers Bruno Joseph mello is currently working at Truckx as a web development consultant. He has six years experience in web application development serving a variety of domains, including entertainment, social media, enterprise, and IT services. He is a JavaScript enthusiast, with four years' experience of working with it. Bruno follows Kaizen and enjoys the freedom of architecting new things on the web. He has also contributed to the community by authoring books such as Web development in Node. js and MongoDB(version2, version 3), What You Need To Know About Node js(free ebook), and SON Essentials(version 2), and by being a reviewer Sasan Seydnejad has more than a decade of experience in developing web user interfaces and frontend applications using JavaScript, CSS, and frameworks such as Angular and React He specializes in modular Spa design and implementation responsive mobile-friendly user interfaces, client application architecture, and UX design. He has worked and consulted for various tech companies including nokia and trading central he is also the author of the book modular programming with JavaScript, by Packt Publishing Xun(Brian) Wu is the founder and ceo of smartchart tech He has 17+ years of extensive, hands-on experience on design and development with blockchain, big data, Cloud, UI, and system infrastructure. He has co-authored a number of books, including Seven nosQl Databases in a Week, Hyperledger Cookbook and Blockchain quick Start Guide. He has been a technical reviewer on more than 40 books for Packt. He serves as a board adviser for several blockchain start-ups and owns several patents on blockchain Brian also holds an NIT computer science master's degree He lives in New Jersey with his two beautiful daughters, Bridget and Charlotte I would like to thank my parents, wife, and kids for their patience and support throughout this endeavor Packt is searching for authors like you IfyoureinterestedinbecominganauthorforPackt, and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for or submit your own idea Table of contents Preface Chapter 1: Working with JavaScript Development Tools Introduction Installing Visual Studio Code for development 889 How to do it 10 How it works Extending visual studio Code How to do it Adding Fira Code font for better editing 18 How to do it 19 How it works 20 Adding npm for package management 21 How to do it 2 How it works 32 2 Creating a project with npm 24 Installing packages for different purposes 27 There's more 28 Doing version control with Git 29 How to do it Theres more 31 Formatting your source code with Prettier 34 How to do it 36 How it works 38 Documenting your code with JSDoc 40 How to do it 41 How it works 42 Adding code quality checks with ESLint 44 How to do it 45 How it works 47 Theres more 8 Adding Flow for data types checks 50 How to do it 51 How it works 52 Configuring Flow's linting 52 Using Flow within VS 54 Chapter 2: Using Modern JavaScript Features 56 Introduction 56 Adding types 58 Table of Contents Getting started 58 How to do it 59 Basic types in Flow 60 Union types 62 Class types 63 Type aliases 65 Generic types 66 Opaque types for safer coding 68 Working with libraries Working with strings 72 How to do it 72 Interpolating in template strings 72 Tagged templates 73 Writing multiline strings 74 Repeating strings 75 Padding strings 75 Searching in strings 76 Trimming strings 76 Iterating over strings Enhancing your code 77 How to do it 77 Working in strict mode 77 Scoping variables 78 Spreading and joining values 81 Destructuring arrays and objects 82 Doing powers 84 Defining functions 84 How to do it 84 Writing arrow functions 84 Returning values 85 Handling this in arrow functions 86 Defining types for arrow functions 88 Defining default argument values 88 Programming functionally How to do it Reducing arrays to values 90 Mapping arrays 92 Filtering arrays 93 Producing functions from functions 93 Doing async calls compactly 96 Getting started 96 How to do it 98 Doing Ajax calls with promises 98 Doing ajax calls with async/await 101 Working with objects and classes 103 How to do it 103 Defining classes 103 EXtending classes 104 [i]

试读 127P Modern JavaScript Web Development Cookbook.pdf
限时抽奖 低至0.43元/次
身份认证后 购VIP低至7折
yalex18 完美 600多页
Modern JavaScript Web Development Cookbook.pdf 35积分/C币 立即下载
Modern JavaScript Web Development Cookbook.pdf第1页
Modern JavaScript Web Development Cookbook.pdf第2页
Modern JavaScript Web Development Cookbook.pdf第3页
Modern JavaScript Web Development Cookbook.pdf第4页
Modern JavaScript Web Development Cookbook.pdf第5页
Modern JavaScript Web Development Cookbook.pdf第6页
Modern JavaScript Web Development Cookbook.pdf第7页
Modern JavaScript Web Development Cookbook.pdf第8页
Modern JavaScript Web Development Cookbook.pdf第9页
Modern JavaScript Web Development Cookbook.pdf第10页
Modern JavaScript Web Development Cookbook.pdf第11页
Modern JavaScript Web Development Cookbook.pdf第12页
Modern JavaScript Web Development Cookbook.pdf第13页
Modern JavaScript Web Development Cookbook.pdf第14页
Modern JavaScript Web Development Cookbook.pdf第15页
Modern JavaScript Web Development Cookbook.pdf第16页
Modern JavaScript Web Development Cookbook.pdf第17页
Modern JavaScript Web Development Cookbook.pdf第18页
Modern JavaScript Web Development Cookbook.pdf第19页
Modern JavaScript Web Development Cookbook.pdf第20页

试读结束, 可继续阅读

35积分/C币 立即下载