Challenge 1 — Solution Task: Write a function parsePositiveNumber(value) that throws a plain Error if value is negative or not a number (use isNaN), otherwise returns it. Call it inside a try/catch with a value that triggers the error, logging the caught message. function parsePositiveNumber(value) { if (isNaN(value)) { throw new Error("Value is not a number"); } if (value < 0) { throw new Error("Value cannot be negative"); } return value; } try { const result = parsePositiveNumber(-5); console.log(result); } catch (error) { console.log("Error:", error.message); } Expected output: Error: Value cannot be negative Notes: - isNaN(value) is checked first since "not a number" and "negative" are different problems, each deserving its own clear message rather than one generic error for both. - console.log(result) never runs because parsePositiveNumber throws before ever reaching its return statement — execution jumps straight into the catch block instead. - Calling parsePositiveNumber("abc") instead would trigger the isNaN check and log "Value is not a number".