メインコンテンツへスキップ
Academind
すべてのコース

Academind Proのコース

JavaScript - The Tricky Parts

JavaScript is amazing but it has some "quirks and features". In this course, we'll dive into 'this', closures, recursion, hoisting, scopes and much, much more!

  • 11セクション · 130件のレクチャー
  • 合計9 時間 21 分
JavaScript - The Tricky Parts

このコースについて

You already know JavaScript—but every now and then it still surprises you. A loop behaves “weirdly”, this points somewhere you didn’t expect, or a value changes because it wasn’t really a value at all. Those moments slow you down and make debugging feel like guesswork.

In this course, you’ll zoom in on the parts that most often cause confusion and errors, and you’ll get explanations that focus on the underlying reasons things behave the way they do. Each section is short, focused, and built to stand on its own, so you can either follow along or jump in when you need a fast, reliable reference.

By the end, you’ll be able to predict how JavaScript will execute code in these edge cases, avoid common traps before they happen, and explain the “why” behind the behavior—so your fixes are confident, not accidental.

学べること

You’ll get clear, practical mastery of the JavaScript behaviors that most often cause bugs—explained with focused examples you can revisit anytime.

  1. 01

    Control scope behavior

    Trace how scope and hoisting affect what’s accessible where, and predict when variables and functions are available during execution so you can prevent hard-to-spot reference and timing issues.

  2. 02

    Use callbacks correctly

    Write callback-based code without accidental early execution by distinguishing indirect vs direct function execution, and structure your functions so the right code runs at the right time.

  3. 03

    Reason about values

    Decide when you’re working with primitive vs reference values, and anticipate how assignments and mutations behave so you don’t accidentally change data in multiple places.

  4. 04

    Handle types safely

    Recognize where value types and type coercion can silently change results, and write code that avoids surprising comparisons and conversions that lead to subtle logic bugs.

  5. 05

    Master closures and recursion

    Implement closures intentionally (instead of stumbling into them) and apply recursion with confidence, understanding what gets remembered across calls and how execution flows through repeated function invocations.

  6. 06

    Tame async JavaScript

    Choose between callbacks, Promises, and async/await to express asynchronous code clearly, and understand how execution order works so your logic stays predictable even when timing doesn’t.

前提条件

  • You should already have working JavaScript knowledge—this is not a beginner course.

このコースの対象者

  • Working JS developers

    You write JavaScript regularly, but certain behaviors still feel inconsistent or “magical.” This course helps you replace trial-and-error debugging with a mental model you can trust.

  • Self-taught learners

    You can build things in JavaScript, yet some core concepts never fully clicked. You want explanations that finally make the confusing parts stick—without rewatching an entire general JS course.

  • Interview prep learners

    You’re comfortable coding, but tricky JavaScript questions expose gaps in understanding. You want to be able to explain what’s happening and why, not just memorize answers.

カリキュラム

始める前に、このコースの構成とペースをご確認ください。

  1. 1Getting Started6件のレクチャー · 11 分
    1. 01Welcome to the Course!1:53分
    2. 02About this Course5:14分
    3. 03Course Requirements & Info1:39分
    4. 04How To Take This Course2:05分
    5. 05Join the Learning Community0:00分
    6. 06The Academind Pro Referral Program0:00分
  2. 2Scopes & Hoisting20件のレクチャー · 1 時間 24 分
    1. 01Module Introduction0:30分
    2. 02Getting Started2:39分
    3. 03Scope in Theory2:31分
    4. 04Introducing Global and Local (Function) Scope4:07分
    5. 05How Scope Works6:47分
    6. 06Getting to Know "Block Scope"7:56分
    7. 07Scope Overview1:44分
    8. 08Special Cases11:02分
    9. 09The Global Object7:11分
    10. 10Scope Across Files4:13分
    11. 11Modules & Scope7:53分
    12. 12Variable Shadowing3:54分
    13. 13Quiz: Scope0:00分
    14. 14What is "Hoisting"?4:00分
    15. 15Hoisting in Action7:32分
    16. 16Hoisting Inside Of Functions3:05分
    17. 17"let" & "const" and Hoisting5:57分
    18. 18Hoisting Precedence3:12分
    19. 19Quiz: Hoisting0:00分
    20. 20Module Resources0:00分
  3. 3Direct vs Indirect Function Execution (Callbacks & Events)8件のレクチャー · 22 分
    1. 01Module Introduction0:34分
    2. 02Direct vs Indirect Function Execution2:38分
    3. 03Direct Execution in Action3:30分
    4. 04Indirect Execution in Action4:53分
    5. 05Indirect Execution With Anonymous Functions2:24分
    6. 06Indirect Execution and Passing Arguments7:49分
    7. 07Quiz: Direct vs Indirect Function Execution0:00分
    8. 08Module Resources0:00分
  4. 4Loops9件のレクチャー · 29 分
    1. 01Module Introduction0:21分
    2. 02Loops Overview3:23分
    3. 03The "for" Loop6:09分
    4. 04The "for" Loop with "let"2:46分
    5. 05The "for ... in ..." Loop7:04分
    6. 06The "for ... of ..." Loop5:09分
    7. 07Using forEach()4:04分
    8. 08Quiz: Loops0:00分
    9. 09Module Resources0:00分
  5. 5Primitive vs Reference Values12件のレクチャー · 52 分
    1. 01Module Introduction0:39分
    2. 02What are "Primitive" and "Reference Values"?7:03分
    3. 03Primitive Values in Action6:27分
    4. 04Reference Values in Action3:00分
    5. 05Behind the Scenes2:32分
    6. 06Immutability vs Mutability2:35分
    7. 07Primitive Wrapper Objects4:37分
    8. 08"const" & Mutation5:32分
    9. 09Reference Value Equality6:06分
    10. 10Copying Reference Values13:01分
    11. 11Quiz: Primitive vs Reference Values0:00分
    12. 12Module Resources0:00分
  6. 6Types & Type Coercion21件のレクチャー · 1 時間 47 分
    1. 01Module Introduction0:45分
    2. 02What's Special About Types in JavaScript?3:17分
    3. 03What is "Coercion"?5:48分
    4. 04How Operators Influence Types & Coercion6:14分
    5. 05Coercion Rules9:38分
    6. 06Arithmetic Operators & Basic Comparisons7:29分
    7. 07Comparison Operators for Booleans & Coercion5:59分
    8. 08Truthy and Falsy Values4:58分
    9. 09Boolean Return Values4:45分
    10. 10Explicit Boolean Coercion with the Double Bang Operator3:46分
    11. 11Semi-explicit Value Coercion2:57分
    12. 12The Special Case of "null"7:18分
    13. 13More on null, undefined and NaN4:10分
    14. 14Objects & Arrays - Coercion Theory3:41分
    15. 15Objects & Arrays - Coercion in Action5:18分
    16. 16Objects & Comparisons6:12分
    17. 17Explicit Object Coercion4:08分
    18. 18Implicit Number Coercion for Objects2:33分
    19. 19Wrap Up1:47分
    20. 20Quiz & Time to Practice16:29分
    21. 21Module Resources0:00分
  7. 7Recursion7件のレクチャー · 49 分
    1. 01Module Introduction0:47分
    2. 02What is "Recursion"?8:36分
    3. 03A Look Under The Hood11:45分
    4. 04Analyzing Recursion with the Browser DevTools7:28分
    5. 05Where Recursion Shines20:52分
    6. 06Quiz: Recursion0:00分
    7. 07Module Resources0:00分
  8. 8Closures8件のレクチャー · 26 分
    1. 01Module Introduction0:47分
    2. 02Closures in Theory4:15分
    3. 03Closures in Practice2:27分
    4. 04Multiple Environments & Closures3:22分
    5. 05How Closures Actually Work5:39分
    6. 06A Special Case9:37分
    7. 07Quiz: Closures0:00分
    8. 08Module Resources0:00分
  9. 9Asynchronous Code16件のレクチャー · 1 時間 20 分
    1. 01Module Introduction0:38分
    2. 02What is "Async Code"?5:24分
    3. 03JavaScript is Single-Threaded!4:17分
    4. 04Callbacks8:05分
    5. 05Another Callback Example2:50分
    6. 06Promises5:35分
    7. 07Promises in Action11:14分
    8. 08Behind the Scenes of Promises8:04分
    9. 09Working with "then()"5:06分
    10. 10Promisifying APIs3:24分
    11. 11Handling Errors10:16分
    12. 12Using "catch()"2:59分
    13. 13Rejecting Promises - Behind the Scenes3:19分
    14. 14Using async/ await8:20分
    15. 15Quiz: Async Code0:00分
    16. 16Module Resources0:00分
  10. 10The "this" Keyword9件のレクチャー · 35 分
    1. 01Module Introduction0:43分
    2. 02What is "this" about?6:14分
    3. 03"this" in Action3:27分
    4. 04How "this" works4:16分
    5. 05Special & Tricky Cases10:02分
    6. 06"Fixing" "this": Helper Variables & bind()5:48分
    7. 07Working with Arrow Functions4:22分
    8. 08Quiz: "this"0:00分
    9. 09Module Resources0:00分
  11. 11Prototypes & Inheritance14件のレクチャー · 1 時間 6 分
    1. 01Module Introduction0:41分
    2. 02JavaScript Objects - Refresher (incl. Constructor Functions)11:19分
    3. 03What are "Prototypes" in JavaScript?9:43分
    4. 04Understanding Prototypes5:49分
    5. 05The Prototype Chain3:15分
    6. 06Setting & Changing Prototypes3:46分
    7. 07Pre-defining the Prototype on Constructor Functions6:02分
    8. 08Changing Prototypes (Patching)6:37分
    9. 09The Default Prototype and "Monkey Patching"4:18分
    10. 10Prototypes & "this"2:51分
    11. 11Protoypes, Classes & Methods9:32分
    12. 12Prototypes and the "constructor" Property (Method)2:24分
    13. 13Quiz: Prototypes0:00分
    14. 14Module Resources0:00分

始める準備はできましたか?

このコースをAcademind Proで購入するか、Academind InfiniteのAll Accessですべてのコースを利用しましょう。

ブラックフライデー: All Access 1年分が $249 $249 · までの限定価格セール価格で購入する
  • Academind Proでこのコースを購入

    $89買い切り

    税込 · 30日間返金保証

    • このコースへの無期限アクセス
    • このコースの今後のアップデートすべて
    • ダウンロード資料、コード、修了証
    JS Tricky Partsを購入
  • Academind InfiniteのAll Access

    $25/月

    または$249 $249 /年17%お得

    • すべてのコースを、すべての機能付きで
    • 新しいコースも随時追加
    • チューター(すべての機能)
    All Accessを始める

All Accessには、Academind Proのすべてのコースも含まれます。

Academind ProとAcademind Infinite

コースもログインもそれぞれ別の、2つのプラットフォームです。

Academind Pro

pro.academind.comにある、これまでのコースプラットフォームです。Proのサブスクリプションとご購入のコースは、引き続きProでご利用いただけます。

Academind Proにログイン

Academind Infinite

AIファーストの新しいプラットフォームです。ProメンバーはProのアカウントでログインできます。Pro All AccessにはInfiniteも含まれ、すべてのコースを受講できます。

Academind Infiniteにログイン

Proのアカウントをお持ちか、Proでコースをご購入済みですか?

Infiniteに移ったのは、Proのコースの一部だけです。お持ちのコースを選んで、Infiniteでのページを開いてください。