0

When I console.log(row), the program prints:

{
 'Name':'Name1',
 Age: 'Age1',
 Username: 'Username1'
}

How can I remove the quotations from the Name key? I know this may not make a difference, but with testing, I've seen it does in my program.

Any help appreciated!

Thank you!

  • 1
    Hi interesting, perhaps change the key name, `row['Name'] = row["'Name'"]; delete row["'Name'"];` – IronMan May 18 '20 at 20:02

1 Answers1

0

IronMan has an answer (but they posted it in comments, which is not for answers).

You will find more answers here: JavaScript: Object Rename Key.

SUM1
  • 771
  • 8
  • 13