Great job! You’ve completed the second lesson on variables and learned the fundamentals of text in Kotlin. Let’s review what was covered.

  • Strings are sequences of characters wrapped in double-quotes.
  • A Character represents a single digit, symbol, or letter wrapped in single quotes.
  • String concatenation is the process of joining Strings using a + operator.
  • String templates are used to substitute variable values within a String using a $ symbol.
  • The readLine() function is used to accept a user’s input via the bash shell.
  • The built-in length property determines the number of characters in a String.
  • The built-in capitalize() function is used to capitalize the String onto which it’s appended.
  • Character escape sequences allow for the compiler to perform certain formatting operations on a String.

Run the code in Review.kt and view Codey’s message. Feel free to also use this space to hone your understanding of text variables and practice writing Kotlin code.


Click Up Next when you’ve ready to move on.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?