Loading section...

String Concatenation

This prints "Maya Johnson". Notice we added a space " " between the names. Without it, we'd get "MayaJohnson". Building Complex Strings You can concatenate as many strings as needed to build formatted output: String Repetition The first line creates a string of 40 dashes. The second repeats "Hello! " three times. This is useful for creating visual separators or repeated patterns.