I have the following code snippet where I don't really understand its output:
echo 20...7;
Why does this code output 200.7
?
From what I know ...
is the splat operator, which it is called in ruby, that lets you have a function with a variable number of arguments, but I don't understand what it does here in the context with echo
.
Can anyone explain what exactly this code does?