I started the Learn Ruby Course today, and on the part where you capitalize the city name in the beginning, I can’t figure out how to capitalize both words in the city name. (My city name has two words in it.) Is there a command that lets you capitalize A CERTAIN PART of the variable?
randomString = “hello world”
randomStringCapitalized = randomString.capitalize
If anyone finds a way to do this, please tell me!