How To Input And Output In Javascript String Methods