Creating Functions In Javascript Interview