Question:

Update the code, so it can run successfully:

band = "Blink" + 182

 

Answer:

We cannot concatenate a String and an Integer. However, we can convert the Integer to a String first and then concatenate the values as two Strings.

band = "Blink" + 182.to_s

Keywords:

© 2017 QuizBucket.org