Lesson 5 workers-101

Query Parameters

Use url.searchParams.get() to read query parameters from the URL. Make the worker return "Hello, {name}!" when a name query parameter is provided, or "Hello, World!" if no name is provided.

Query parameters are great for optional configuration. You can also use url.searchParams.getAll() for parameters that appear multiple times, or iterate with url.searchParams.entries().

Your code