how to code js inside json code example
Example 1: create a json object in javascript
var employee = {
"firstName": firstName,
"lastName": lastName
}
Example 2: html working with JSON data
superHeroes.homeTown
superHeroes['active']
var employee = {
"firstName": firstName,
"lastName": lastName
}
superHeroes.homeTown
superHeroes['active']