JavaScript by Doing: Over 100 Hands-On Coding Challenges for Mastering JS
Svekis, Laurence LarsThe initial sections of the book introduce readers to JavaScript's syntax and basic programming constructs such as variables, data types, and control structures like loops and conditional statements. Each concept is accompanied by targeted coding exercises that encourage hands-on practice. For example, early exercises have readers practice outputting text to the console, working with variables, and implementing basic conditional logic.
As the reader progresses, the exercises gradually increase in complexity. The book introduces functions and arrays, explaining how to define functions, pass parameters, return values, and manipulate arrays. This section is crucial as it lays the groundwork for understanding JavaScript's functional programming capabilities, which are expanded upon in later chapters that discuss callbacks, promises, and async/await patterns for handling asynchronous operations