linux1880 Posted September 7, 2010 Share Posted September 7, 2010 hi friends, what does this variable means in javascript ? pls help var params = 'id='+id; Quote Link to comment Share on other sites More sharing options...
Adam Posted September 7, 2010 Share Posted September 7, 2010 That just concatenates (joins the variable and string together to make one string) and stores in the params variable. Quote Link to comment Share on other sites More sharing options...
Psycho Posted September 7, 2010 Share Posted September 7, 2010 Um, which variable are you referring to? There are two variables in the code you posted: 'params' and 'id'. But, to elaborate on MrAdam's post, that line instanciates a new variable ('params') and set's it to a string value consisting of the string 'id=' and the value of the variable 'id'. SO, if the variable 'id' was set to the value '23', then the variable 'params' would contain the string 'id=23' Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.