Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript difference between window and Window

Window is a function, as you can see. It's the constructor for the windows (but you can't build new windows directly with the constructor, you usually use the Window.open function). Window.prototype thus holds the methods you can call on the window).

window is the global variable holding an instance of Window, it represents the browser window containing your document (not really a "window" usually, rather a tab in modern browsers).

You can check that
window instanceof Window
is true
Comment

PREVIOUS NEXT
Code Example
Javascript :: toggle class jquery 
Javascript :: anonymous function parameters javascript 
Javascript :: send data from form to another page angular 
Javascript :: split javascript 
Javascript :: What is cookies, sessionStorage, localStorage. 
Javascript :: destructuring js 
Javascript :: insert a data into mongo using express 
Javascript :: how to make callback function javascript 
Javascript :: set placeholder javascript 
Javascript :: javascript array remove last 
Javascript :: how to turn of autocomplete in react hook form material ui 
Javascript :: javascript Adding New Elements 
Javascript :: html table to csv javascript 
Javascript :: events jquery 
Javascript :: null vs undefined 
Javascript :: javascript inheritance 
Javascript :: file upload with progress bar 
Javascript :: javascript list comprehension 
Javascript :: plus sign javascript 
Javascript :: js windowresize event 
Javascript :: assertion error in jest 
Javascript :: clone an object javascript 
Javascript :: display none after hover 
Javascript :: trim function 
Javascript :: js modulo 
Javascript :: discord.js reply to message author 
Javascript :: node js http request express 
Javascript :: js timer 
Javascript :: what the cjs.js fiel use 
Javascript :: mock js random 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =