intermediate
Challenge: take a URL apart by hand
Implement this from the stub. Hidden tests grade the behaviour you write, not the comments you leave.
Challenge: Take a URL Apart by Hand
export interface ParsedUrl {
scheme: string
host: string
port: number
path: string
params: Record<string, string>
}
export function parseUrl(input: string): ParsedUrl {
// Your implementation here
}challenge — implement from scratchCtrl+↵ submits · Ctrl+Shift+↵ runsstarter code