PDA

View Full Version : variable assignment



eltonho
17 Sep 2011, 5:21 AM
Hi all,

I want to create a variable X and assign an object: ObjA to it. The object that i want to assign to X is kept in another variable called Y. How can I make it?

That is,
var X = <value of Y>, //says, Y = 'ObjA'

ps. I believe that it is easy, however, I am new to ExtJS or even JS.

Thanks,
Elton

mankz
17 Sep 2011, 6:15 AM
Not sure I understand what you mean, but..::



var x = y;


?

mberrie
17 Sep 2011, 8:10 AM
There has to be more to it. Or maybe not!? :D