Working with Strings
This lesson will teach you how you can operate on strings in Ruby.
🔤 A String, in programming languages, is text.
More precisely a String is an object that represents a specific text. E.g. your name, represented in Ruby, is one String. The title of this text is another String, and so is this paragraph and this full text in its entirety.
In web applications, Strings are everywhere. In fact, they’re used by far more often than numbers. That probably is because most applications that we deal with on a daily basis are dealing with text messages (Email, Facebook, Twitter, …) or descriptions of things (Amazon, eBay, …).
Did you ever use a web application that is a complicated calculator app, and mostly deals with numbers? There you go :)
In Ruby, there are a couple of flexible ways to create Strings, but the most simple and by far most common way is to ...
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy