Being young and naive, I started to write web pages in the late 1990s. One of them was the first website of the Human Resources Department at Tsinghua University. A benefit of working for HR is that you could see job openings earlier than other people. My wife got her first job at Tsinghua this way.
As time goes by, I have been always amazed by the evolution of technology. Pursuit of knowledge makes me happy, and I would like to share this happiness with the younger generation.
Modern web pages are built with HTML for the structure and content, CSS for the styles and presentation, and JavaScript for the dyanmic effects and interactions. This tutorial focuses on JavaScript.
Chapter 1 provides an introduction to the topic and its relevance, while chapter 2 covers the foundational concepts that are necessary for understanding the language.
Chapters 3 and 4 are focused on variables and operators, which are fundamental building blocks for programming in JavaScript. Chapters 5-7 delve into numbers, strings, and arrays, which are important data types that are commonly used in JavaScript.
Chapters 8 and 9 focus on control flow structures, such as if-else statements and loops, which allow developers to control the flow of their code. Chapters 10 and 11 introduce objects and functions, which are powerful constructs in JavaScript that allow for code reuse and organization.
Chapters 12-14 dive deeper into arrays, objects, and functions, exploring more advanced techniques and best practices for using these constructs. Chapter 15 introduces classes and object-oriented programming, which is a popular paradigm for building complex software systems.
Chapters 16 and 17 explore sets and maps, which are specialized data structures that are useful for certain types of problems. Chapter 18 covers date and time, which are important concepts for many applications that need to work with temporal data.
Chapters 19 and 20 focus on events, which are a key feature of modern web development. Chapter 21 provides best practices for writing high-quality JavaScript code, while chapter 22 offers resources and tools for developers to improve their skills and productivity.
Dedication
To family.
Acknowlegements
Thanks to Ecma International for JavaScript and ECMAScript.
Thanks to Microsoft for Visual Studio Code and GitHub.
Thanks to Google for Chrome.