Arrays & Strings Quiz


How can we access the fifth character in the string "Destination: Dev"?

Show Answer

How would you separate the string "programming is fun" into an array of words?

Show Answer

Which method allows you to return a section of a string starting at an index and continuing for a certain length?

Show Answer

Finish the code below to return the alphabet array as a single string, with each letter lowercase. The letters should be separated by semicolons(;).

alphabet = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]

Show Answer