Write a Ruby program to remove all white space within a string.
def check_string(my_string) return my_string.delete(' ') end print check_string("Ja v aS cr ip t")
Output:
JavaScript
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer