0

I'm trying to set a var string to the name of my array object (see newName). But if I use the code below the arrayobject is named "newName" instead of "test". Can somebody help me out?

var newName = "test"    
var productData = {
  newName : index,
  "productName" : productName,
  "currentInventory" : currentInventory,
  "lastModified" : lastModified
 }
Federico klez Culloca
  • 24,336
  • 15
  • 57
  • 93

0 Answers0