官术网_书友最值得收藏!

Summary

Variables are one of the most fundamental building blocks of programming and after going through this chapter, you should now have a basic understanding of how to use variables in Ruby. We saw two ways to print data out to the Ruby console to see the output. We also looked at how to get user input so that it can be utilized in a program. Additionally, we analyzed how to clean the data by leveraging the chomp method. Lastly, we understood the concept of variable scope and its use.

In the next chapter, we'll dive into the string data type, which is what we use when working with data that contains characters, words, and sentences

主站蜘蛛池模板: 万荣县| 四川省| 鹤峰县| 静安区| 海兴县| 龙泉市| 岳西县| 洮南市| 英吉沙县| 临武县| 新蔡县| 天等县| 黔南| 崇礼县| 余江县| 奇台县| 河西区| 潞城市| 平乡县| 宁晋县| 延安市| 海原县| 西林县| 彩票| 尚义县| 嘉善县| 巍山| 威宁| 盐津县| 卫辉市| 山东省| 台安县| 吕梁市| 高阳县| 巩留县| 岑溪市| 兴城市| 上虞市| 阜阳市| 潞城市| 南澳县|