Host lokalizacji okna vs pochodzenie

console.log(window.location.host); // localhost:3000
console.log(window.location.hostname); // localhost
console.log(window.location.origin); // http://localhost:3000
Anxious Alligator