How do you make a Javascript value have the same value as another variable. I have a variable called "buttonId", and another called "toWin", I want to make it so that buttonId's value doesn't change, but, toWin changes to have the same value as buttonId. something like:
toWin=buttonId;
Can anyone help me? No jQuery, please.