Start building beautiful web applications in JavaScript with the bestselling introduction to the language, updated with new features, fresh exercises, and fun projects. JavaScript, the programming language that allows us to add programs to web pages, lies at the heart of almost every modern web application, from social media sites to browser-based games. Just about every device can run it, making it a great choice for writing universally useful code.
The fourth edition of this classic textbook takes you on a journey through the language of the web, starting from its basic elements and building up to engaging, complete programs. The author's personal experiences from years of maintaining popular open source projects enliven the text with practical insights and examples.
This edition of
Eloquent JavaScript updates the book to describe the 2024 version of JavaScript, and shifts the attention given to some topics to better reflect current development practices.
The text takes a practical approach to teaching, rooting theory in plenty of motivating examples. The first half of the book describes the fundamentals of the language, whereas the second half shows how to apply it in two programming environments: the web browser and Node.js. Five project chapters show how to build bigger programs, working through these projects in a piecemeal, conversational way. They include a pathfinding robot, a small programming language, a platform game, a pixel drawing program, and a simple dynamic website.
Exercises provided at the end of most chapters will challenge you to creatively apply the concepts and techniques introduced. The book's companion website provides an interactive environment for working on these exercises and playing with the example programs.
Whether you're looking to learn JavaScript or to deepen your programming skills, you'll find this book full of stimulating material.
Updated to ECMAScript 2024
開始使用這本暢銷書籍的更新版,建構美麗的 JavaScript 網頁應用程式,書中包含了新功能、新練習和有趣的專案。
JavaScript 是一種程式語言,讓我們能夠在網頁上添加程式,幾乎所有現代網頁應用程式的核心都在於它,從社交媒體網站到基於瀏覽器的遊戲,幾乎每一種設備都能運行它,使其成為撰寫通用程式碼的絕佳選擇。
這本經典教科書的第四版帶您踏上網頁語言的旅程,從基本元素開始,逐步建立引人入勝的完整程式。作者多年來維護流行的開源專案的個人經驗,為文本增添了實用的見解和範例。
這版的《Eloquent JavaScript》更新了書籍內容,以描述 2024 版本的 JavaScript,並調整了某些主題的重點,以更好地反映當前的開發實踐。
本書採取實用的教學方法,將理論根植於大量激勵人心的範例中。書的前半部分描述了語言的基本原理,而後半部分則展示了如何在兩個程式環境中應用它:網頁瀏覽器和 Node.js。五個專案章節展示了如何構建更大的程式,並以逐步對話的方式進行這些專案。這些專案包括尋路機器人、小型程式語言、平台遊戲、像素繪圖程式和簡單的動態網站。
大多數章節結尾提供的練習將挑戰您創造性地應用所介紹的概念和技術。書籍的伴隨網站提供了一個互動環境,讓您可以進行這些練習並玩弄範例程式。
無論您是想學習 JavaScript 還是深化您的程式設計技能,您都會發現這本書充滿了激勵人心的材料。
更新至 ECMAScript 2024。