In Ruby, $stdout
represents the current standard output and a global variable. It means we can also use it to output data.
$stdout << data
This method returns the data
printed to the console.
Let's look at the code below:
# create a variable name = "Okwudili" $stdout << "hello " << name $stdout << "\nWelcome to Edpresso\n"
RELATED TAGS
CONTRIBUTOR
View all Courses