+ 2

Why can't I insert a variable into a puts/print?

It says here to do: puts 'Your variable #{variable}' but when I tried it it just printed: Your variable #{variable} I'm running either 2.4.3 or 2.5.0 on Windows with Notepad++ as an IDE. Is there a different command that I have to use?

6th Jan 2018, 6:20 PM
C-W0LF
C-W0LF - avatar
1 Answer