Why does this compile cleanly in TypeScript, but crash when called with no arguements? Go!

typescript
youtube
Why does this compile cleanly in TypeScript, but crash when called with no arguements? Go! Here’s a TypeScript developer challenge that shows how optional parameters can get tricky. TypeScript accepts the code without errors. But the moment you call the function with no arguments, it blows up at runtime. Why does this compile cleanly, and what change would you make so the bug is caught during type checking instead of in production? Share your solution in the comments. Subscribe to Google for Developers → Speakers: Meg Bauman
  2025/10/06      youtube

関連するプログラミング動画 [typescript]

Our Tag

最近投稿されたプログラミング学習動画

The first things you need to look at as a data scientist!

DevLaunch is my mentorship program where...

  2025/10/27

Master Python Closures With Real-World Use Cases

python
study

View the full course here: Want to ke...

  2025/10/27

Python Pydantic Tutorial: Complete Data Validation Course (Used by Fas

python

In this video, we'll be learning how to ...

  2025/10/27

How To Find $1M Ideas as An Engineer [Powerful Formula]

📘 Get EFB Book & Course FREE 👉 ...

  2025/10/26

Starting our AI agent!

DevLaunch is my mentorship program where...

  2025/10/26

The Dark Side of LLMs: Hallucinations & Attacks

Listen to the full episode at or wherev...

  2025/10/26

How to Create Splash Screen in Flutter Without Using Any Package

flutter

How to Create a Custom Splash Screen in ...

  2025/10/26

Build a Python AI Agent in 10 Minutes

python

Try Notion for free → Today I'm going ...

  2025/10/26

【生成AI使い方】提案書の構成案作成があっというま|すぐ使える生成AIテンプレート【活用シーン別プロンプトエンジニアリング12】

「キノクエスト」の登録・詳細はこちらから▶︎ e-ラーニング「キノクエスト」な...

  2025/10/26

How to Customize Flutter Native Splash Screen Easily!

flutter

Are you tired of seeing the default whit...

  2025/10/26

Terraform Workspaces Explained: Manage Dev/Staging/Prod Environments w

Welcome to your essential 2025 guide to ...

  2025/10/25

Follow these roadmaps if you're a developer!

DevLaunch is my mentorship program where...

  2025/10/25

Use These Python Features Instead of Classes (Sometimes)

python

Listen to the full episode at or wher...

  2025/10/25

【生成AI使い方】マニュアル作成を整理しながらサポート|すぐ使える生成AIテンプレート【活用シーン別プロンプトエンジニアリング11】

「キノクエスト」の登録・詳細はこちらから▶︎ e-ラーニング「キノクエスト」な...

  2025/10/25

How To Quit Your Job as An Engineer

📘 Get EFB Book & Course FREE 👉 ...

  2025/10/24

RStudio on Amazon SageMaker AI | Amazon Web Services

Amazon

Build with fully managed integrated deve...

  2025/10/24