You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// taken from nodejs.org:
// The new URL constructor is accessible as a property of the global object.
// It can also be imported from the built-in url module.
const myUrl = new URL("https://www.example.com/listing?id=1000&premium=true");
console.log(myUrl); // the url object
console.log(`Host: ${myUrl.host}`); // www.example.com
The text was updated successfully, but these errors were encountered:
Chapter 20 url.parse() is deprecated and needs to be updated to use WhatWg URL API.
https://nodejs.org/api/url.html#the-whatwg-url-api
https://url.spec.whatwg.org/
DEPRECATED url.parse() syntax:
WhatWg URL API syntax:
The text was updated successfully, but these errors were encountered: