How to change the key of students[0] 'John' to: NickName
var students = [];
students.push( { Name: 'John', Track: 'HTML', Score: 2000 } );
students.push( { Name: 'Ron', Track: 'CSS', Score: 2400 } );
students.push( { Name: 'Jim', Track: 'javaScript', Score: 2800 } );
So it will look like this:
{ NickName: 'John', Track: 'HTML', Score: 2000 }
students[0].NickName = students[0].Name; delete students[0].Name