What close() does in Javascript?

What close() does in Javascript?

In simple words close method closes the current window or the window in which it is called.
Syntax is as follows:
window.close();