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 variablename = "Okwudili"$stdout << "hello " << name$stdout << "\nWelcome to Edpresso\n"