+ 3
Why is window not required in coding in j.s.
object
3 Respuestas
+ 5
Because window is an object like the document. If you make operations you can used:
document. createElement('p');
instead of:
window. document.createElement('p');
It is easier without writing window.
+ 2
Cause browser will add "window" to every variable automatically.
+ 2
yes I also figured out windows is a top level object...so it mustn't be added in every j.s code