host lokasi jendela vs asal

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