close a new window

Write a javascript code to close a window.

Output :