How To Print Output In Same Line In Javascript The Xy