+ 1

In Ruby, can a variable_name start with number?

In all other languages, variable_name contains alphanumeric characters and underscores, that does not start with numerical_value. In SoloLearn, it's not mentioned, so Whether same methodology applies to Ruby?

10th Oct 2017, 10:10 AM
KARTHIC ANNADURAI
KARTHIC ANNADURAI - avatar
3 odpowiedzi
+ 1
I think it can't start with a number but the best way to be sure is trying as you know. Also I can't give you a certain answer because I am new at ruby.
11th Oct 2017, 7:58 PM
Ulaş Dilek
Ulaş Dilek - avatar
0
Oapapw
12th Nov 2020, 12:08 PM
Uikj Jjhg
Uikj Jjhg - avatar
0
👐👏👋👉👇👊☝👉👎👍👌✊✌✋💔💕💓💘💘💘👣👣👣👄👄👄💋👅👅✌✌✋
12th Nov 2020, 12:09 PM
Uikj Jjhg
Uikj Jjhg - avatar