Strings A string holds sequence of characters in ruby program. These can be letters, numbers or special characters written inside a pair of either single quotes (”) or double quotes (“”). Using double quotes is the preferred way of working with strings. In a program string values are assigned to a variable. name = “The […]
Variables Variables are the memory locations, which are assigned to any data to be used by the program. The data is usually strings, numbers or arrays. For example if we need to hold the data (information) like the movie name, release date, rating, actors, then we use variables to hold the value. When we declare […]