How To Print Output In Same Line In Javascript