Simple Javascript question

Posted by Rachel on Stack Overflow See other posts from Stack Overflow or by Rachel
Published on 2010-05-20T22:27:52Z Indexed on 2010/05/20 22:30 UTC
Read the original article Hit count: 169

Filed under:
|

I have products : offer_id in javascript and am getting value of offer_id dynamically.

Let say I get products : 12345 but now instead of that I want it to be as products : ;12345, than how can this be achieved in javascript.

I have tried :

  1. products : ';'.offer_id
  2. products : ';'."offer_id"
  3. products : ';'.'offer_id'
  4. products : ";".offer_id

But all of my above trials have failed and am getting syntax error for each one of those. I am newbie to Javascript and so would really appreciate any inputs.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about syntax