Question: Edit Metadata Strings have a method called join. join takes one argument, an array of strings. It returns a single string. Specifically, the value of
Edit Metadata Strings have a method called join. join takes one argument, an array of strings. It returns a single string. Specifically, the value of astring.joinanarray is a single string that's the concatenation putting together" of all the strings in anarray, except astring is inserted in between each string. Question Use the array booktitlewords and the method join to make two strings: "Eats, Shoots, and Leaves" call this one withcommas "Eats Shoots and Leaves" call this one withoutcommas Hint: If you're not sure what join does, first try just calling, for example, "foo".joinbooktitlewords Edit Metadata withcommas withoutcommas # These lines are provided just to print out your answers. printwithcommas: withcommas printwithoutcommas: withoutcommas
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
