CS50’s Web Programming with Python and JavaScript 2020 — Review JavaScript, SPA, and CSS animation

Introduction
CS50’s Web Programming with Python and JavaScript is a solid course for IT or software engineers to review the basic knowledge for web programming which provided by HarvardX. Of course, we still have to take time to clarify the concepts after completing the class.
The content of this correspond to the week 6 and the week 7. There are few items that I noted for detailed and examples.
- Some basic concepts of JavaScript
- Ajax (Asynchounus JavaScript and XML)
- Socket.IO
- Single-Page Apps
- Use Ajax with HTML5 History API
- Load resources only when the user scrolls to the bottom of the page
- Use HandleBars template
- CSS Animation
- Project2:AnonymousChat
About this Series
This series aims to wrap up contents of CS50’s Web Programming with Python and JavaScript.
- Article 1: Review CSS, Sass, and RWD
- Article 2: Review APIs, ORM and SQL
- Article 3: this article
- Article 4: Learn Django and Selenium
- Article 5: CI/CD, Containerization, Scalability, Caching, and Security
Basic concepts of JavaScript
The content of JavaScript in CS50w doesn’t dive deep. However, it helps me to review my knowledge and let me know it’s completed or not.
It includes the following items in this section.
- The DOMContentLoaded listener
- Event delegation: capture and bubbling
- The differences between const, let, and var
- Arrow notation syntax (ES6)
- The differences between cookie, local storage, and session storage
- The differences between session-based login and token-base login
The DOMContentLoaded listener

- We use the DOMContentLoaded listener to manipulate the DOM when the DOM is loaded completely












