Book description
NoneTable of contents
- Title Page
- Copyright and Credits
- Dedication
- About Packt
- Contributors
- Preface
- Section 1 - What is JavaScript? What is it not?
-
The Entrance of JavaScript into Mainstream Programming
- Technical requirements
- NCSA and the need for interactivity
- Early web browsers and a 10-day prototype
- Enter Ecma International
- HTML, CSS, and JavaScript – the best friends of the frontend
- HTML, the overlooked hero
- CSS
- JavaScript
- How JavaScript fits into the frontend ecosystem
- Our first Ajax application
- JavaScript in practice
- Summary
- Questions
- Further reading
- Can We Use JavaScript Server-Side? Sure!
-
Nitty-Gritty Grammar
- Technical requirements
- A history of style
- Grammar rules
- Capitalization counts
- Reserved words
- Declaring variables
- const
- let
- var
- Data types
- typeof and equality
- Arrays and objects
- Conditionals
- Loops
- for loops
- while loops
- do/while loops
- for..in loops
- for..of loops
- Functions
- Function declarations
- Function expressions
- Arrow functions
- Comments
- Methods and properties
- Punctuation and readability
- The elephant in the room – whitespace
- Existing standards – linting to the rescue!
- Summary
- Questions
- Further reading
-
Data and Your Friend, JSON
- Technical requirements
- Data types – both JavaScript and Python are dynamically typed!
- Exploring data types
- Booleans
- Numbers
- Strings
- Exercise – a basic calculator
- Arrays and sets
- Arrays
- Sets
- Objects and JSON
- Prototypal inheritance
- JSON
- The HTTP verbs
- API calls from the frontend – Ajax
- SWAPI lab
- Summary
- Questions
- Further reading
- Section 2 - Using JavaScript on the Front-End
-
Hello World! and Beyond: Your First Application
- Technical requirements
- I/O with the console and alert messages
- Working with input in a function
- Exercise – Fibonacci sequence
- Fibonacci sequence solution
- Using objects as a datastore
- Exercise – multiplication
- Multiplication solution
- Step 1 – computing and storing
- Step 2 – retrieval
- Understanding scope
- Scope chains and scope trees
- Closures
- A basic example of a closure in practice
- Summary
- Questions
- Further reading
- The Document Object Model (DOM)
-
Events, Event-Driven Design, and APIs
- Technical requirements
- The event life cycle
- Capturing an event and reading its properties
- Sticky notes revisited
- Sticky notes – solution 1
- Sticky notes – solution 2 – event delegation
- Sticky notes – solution 3
- Using Ajax and events to populate API data
- Starter code
- Custom events
- Solution code
- Handling asynchronicity
- Error handling
- Star Wars API exploration Lab
- A solution
- Summary
- Questions
- Further reading
-
Working with Frameworks and Libraries
- Technical requirements
- jQuery
- Advantages of jQuery
- Disadvantages of jQuery
- Examples of jQuery
- Angular
- Advantages of Angular
- Disadvantages of Angular
- Examples of Angular
- Single-page applications
- The JavaScript
- React and React Native
- Advantages of React
- Disadvantages of React
- Example of React
- Components
- React Native
- Vue.js
- Features of Vue.js
- Example of Vue.js
- Summary
- Further reading
- Deciphering Error Messages and Performance Leaks
- JavaScript, Ruler of the Frontend
- Section 3 - The Back-End: Node.js vs. Python
- What Is Node.js?
- Node.js versus Python
- Using Express
- React with Django
-
Combining Node.js with the Frontend
- Technical requirements
- Understanding the architecture handshake
- The frontend and Node.js - React and image upload
- Architecture
- Investigating the React JSX
- Deciphering the Express application
- Creating a recipe book with APIs and JSON
- Setting up the application
- Testing the API
- Diving into the code
- Making a restaurant database with Yelp and Firebase
- The starting line - creating a React app
- Getting set up with Firebase
- Testing our database
- Creating our app
- Summary
- Enter Webpack
- Section 4 - Communicating with Databases
- Security and Keys
- Node.js and MongoDB
- Putting It All Together
- Assessments
- Other Books You May Enjoy
Product information
- Title: Hands-on JavaScript for Python Developers
- Author(s):
- Release date:
- Publisher(s): Packt Publishing
- ISBN: None
You might also like
book
Hands-On JavaScript High Performance
An example-driven guide covering modern web app development techniques and emerging technologies such as WebAssembly, Service …
book
Clean Code in JavaScript
Get the most out of JavaScript for building web applications through a series of patterns, techniques, …
book
Learn Web Development with Python
A comprehensive guide to Python programming for web development using the most popular Python web framework …
book
Begin to Code with JavaScript
Become a JavaScript programmerand have fun doing it! Start writing software that solves real problems, even …