Answers for "window location host vs origin"

0

window location host vs origin

console.log(window.location.host); // localhost:3000
console.log(window.location.hostname); // localhost
console.log(window.location.origin); // http://localhost:3000
Posted by: Guest on August-21-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language