# Commenting goes like this for single-line statements=begin
This is for when you want comments to go more than one line
without having to keep putting a # before anything intended for
comments
=end=begin
[name] variables example below name is now a variable that
can be called multiple times and can be changed at any point by
the developer using methods or reassigning the variable based on
whatever the developer's intentions are
=endname="Adolfo"# ^ means to assign the variable to whatever you want it to be whether that would be a number or a string by putting ""number="123456"ppnumber.to_irequire"date"saved_date=Date.new(2024,12,25)ppsaved_date# method calling for strings or int objects [name].{method name}(arguments for method)
Top comments (0)
Subscribe
We're a place where coders share, stay up-to-date and grow their careers.
Top comments (0)