can i declare the variable with name "@yash" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

can i declare the variable with name "@yash"

2nd Jul 2016, 2:59 PM
DEATH WALKER
DEATH WALKER - avatar
8 Answers
+ 1
no it's can't
2nd Jul 2016, 5:14 PM
Prateek panda
Prateek panda - avatar
+ 1
Ashvin: identifiers CAN start with underscore character.
2nd Jul 2016, 11:27 PM
Garme Kain
Garme Kain - avatar
+ 1
no, a variable can't start with @
4th Jul 2016, 9:55 PM
Mihai Dancaescu
Mihai Dancaescu - avatar
0
No you can't because we can only start with underscore or alphabets for declaring a variable name...😁😊
2nd Jul 2016, 3:54 PM
Taranjeet Singh
Taranjeet Singh - avatar
- 1
no
2nd Jul 2016, 3:27 PM
ドラゴンボール Z ゼット 九千
ドラゴンボール Z ゼット 九千 - avatar
- 1
No. Identifiers must contain only alphabet characters (either uppercase or lowercase), numbers or _ , apart from some special ASCII characters. Also, an identifier cannot start with a number.
2nd Jul 2016, 3:56 PM
Garme Kain
Garme Kain - avatar
- 1
Not possible because user name contains first must be latter....not a numerical and alphabetical keyword _yash not y_ash yes
2nd Jul 2016, 9:44 PM
Âshvin Solanki
Âshvin Solanki - avatar
- 1
I know mihai which I am wrong this example is correct....
5th Jul 2016, 6:15 AM
Âshvin Solanki
Âshvin Solanki - avatar