create a json object in javascript

JavaScript
var employee = {
  "firstName": firstName,
  "lastName": lastName
}
Source

Also in JavaScript: