Skip to content

Latest commit

 

History

History

generate-table

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Generate the table with javascript

There is the array of objects. Generate the table with data containing these objects

let persons = [{
    "id": 1,
    "first_name": "Bobbie",
    "last_name": "Glowacki"
}, {
    "id": 2,
    "first_name": "Petey",
    "last_name": "Dailly"
}, {
    "id": 3,
    "first_name": "Horton",
    "last_name": "Callinan"
}, {
    "id": 4,
    "first_name": "Ezechiel",
    "last_name": "Snawden"
}, {
    "id": 5,
    "first_name": "Cosmo",
    "last_name": "Standing"
}, {
    "id": 6,
    "first_name": "Trude",
    "last_name": "Yitzhakof"
}, {
    "id": 7,
    "first_name": "Barr",
    "last_name": "Alkins"
}, {
    "id": 8,
    "first_name": "Yule",
    "last_name": "Treat"
}, {
    "id": 9,
    "first_name": "Morgan",
    "last_name": "Frarey"
}, {
    "id": 10,
    "first_name": "Cassandre",
    "last_name": "Dunlop"
}]