Why global variable ‘name’ changes to string? [duplicate]

https://developer.mozilla.org/en-US/docs/Web/API/Window.name

It is a string, because window.name has a purpose. You are setting the name of the window.

Leave a Comment