0

How can i make the user to type the variables in Java script?

if I decide a variable to make the user choose it the calc program must be done by me

30th May 2017, 4:31 AM
Lakshay Kumar
Lakshay Kumar - avatar
2 odpowiedzi
+ 16
vr = prompt("Variable Name"); eval(vr+"='value';");
30th May 2017, 4:35 AM
Valen.H. ~
Valen.H. ~ - avatar
0
if u mean ask the input from user and set that input as a variable this is what u should do var x = prompt("Enter input") [hope I am not wrong cause I have not tries it yet]
30th May 2017, 7:15 AM
_Retr0/-
_Retr0/- - avatar