JavaScript: ภาษาที่ขับเคลื่อนเว็บ
JavaScript เป็นภาษาการเขียนโปรแกรมเพียงภาษาเดียวที่ทำงานแบบ native ในทุกเบราว์เซอร์ — และด้วย Node.js มันก็ทำงานบนเซิร์ฟเวอร์ด้วย มันควบคุมทุกอย่างตั้งแต่การคลิกปุ่มและการตรวจสอบแบบฟอร์มไปจนถึงสตรีมข้อมูลแบบเรียลไทม์และแอปเว็บที่สามารถทำงานออฟไลน์ได้ แทร็กนี้สร้างความเข้าใจที่เข้มงวดและสมบูรณ์ของภาษา: จากค่าและประเภทไปจนถึง event loop, Web Workers, และ Service Workers
สิ่งที่คุณจะเรียนรู้
คุณจะเริ่มต้นด้วยตัวแปร, scope, control flow, และประเภทข้อมูลหลัก จากนั้นจึงก้าวหน้าไปยัง DOM manipulation, event delegation, และ Fetch API สำหรับ HTTP requests กลึ่มกลางของแทร็ก คุณจะศึกษา closures และ module pattern, functional programming patterns, currying และ function composition, และ asynchronous JavaScript — callbacks, Promises, microtasks, และ async/await Browser APIs ที่ครอบคลุม ได้แก่ localStorage, IndexedDB, Canvas API, WebSockets, Web Components, Intersection Observer, และ Streams API หลักสูตรขั้นสูงสำหรับ event loop ในระดับลึก, Proxy และ Reflect, Web Workers, Service Workers และ offline caching, iterators และ generators, และ performance และ memory management
เส้นทางการเรียนรู้
หกสิบแปดหลักสูตรที่ทำงานอยู่ขยายจาก A1 ถึง C1 บล็อก A1 ครอบคลุมพื้นฐาน: ค่าและประเภท, ตัวแปรและ scope, arrays และ objects, และ control flow A2 สร้างพื้นฐานนั้นด้วย template literals, optional chaining, functions และ this, error handling, และ Date object B1 แนะนำสภาพแวดล้อมของเบราว์เซอร์ — DOM traversal, event handling, Fetch API, destructuring, higher-order array methods, และ classes B2 ขยายออกไปกว้างขึ้น: functional patterns, async patterns, Maps และ Sets, Regex, Web Components, modules, packaging, และ testing fundamentals บล็อก C1 จบลงด้วย The Event Loop Deep Dive, Proxy and Reflect, Web Workers and Multithreading, Service Workers and Offline Caching, Iterators and Generators, และ Defensive JS
วิธีการทำงาน
แต่ละหลักสูตรแบ่งออกเป็นบทเรียนสั้น ๆ ที่มีจุดมุ่งหมายชัดเจน ซึ่งคุณทำให้เสร็จในตัวแก้ไขโค้ดในตัวพร้อมการป้อนกลับแบบเรียลไทม์ AI tutor พร้อมใช้งานเมื่อใดก็ตามที่คุณติดขัด และความก้าวหน้าจะมีโครงสร้างเพื่อให้แนวคิดทุกอย่างเกิดขึ้นหลังจากที่ข้อกำหนดเบื้องต้นของมันมั่นคง