The page you're looking for doesn't exist, may have been moved, or is temporarily unavailable.
1 async function findPage(url: string) { 2 try { 3 const page = await fetch(url); 4 return page; 5 } catch { 6 // Oops! Page not found 🤷 7 return null; 8 } 9 }
Get the editor for Windows, macOS, or Linux
Learn the basics and boost your productivity
See what's new in the latest version
Get our FREE eBook "10 Programming Tips That Changed Everything" when you subscribe!
No spam. Unsubscribe anytime.