It would be possible to create a single variable that has the mutual influence of other names on it.
In other words, different names for the same statement var
, and in the end will have the same value.
Example
I'm doing this:
var perfume = "Racco"; var colonia = "Racco"; var roll-on = "Racco";
I want something like this:
var perfume, colonia, roll-on = "Racco"
It does not matter! Any of the three names corresponds to the same
new String();
.Just a
var
, with multiple names, to call only a single Value .
How can I do this? After declaring more than one variable on the same line bring a single value to all of them.