Just added: Embedded C From Zero
TypeScript
function describe(value: string | Date | { url: string }): string {
  if (typeof value === "string") return "text: " + value;
  // Add a branch for Date (instanceof) returning "year: " + the full year,
  // and a branch for the link object (in) returning "link: " + the url.
  return "unknown";
}

const a = describe("hello");
const b = describe(new Date(2030, 0, 1));
const c = describe({ url: "https://example.com" });