mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-18 06:01:14 -05:00
358 B
358 B
title
| title |
|---|
| Ruby Puts |
The puts call is similar to the print call, with a few exceptions. The puts call will add a new line to the end of each argument, whereas print will simply print the argument as stated.
For example, puts[1, 2, 3, 4, 5] will output:
1
2
3
4
5
While print[1, 2, 3, 4, 5] will output:
[1, 2, 3, 4, 5]