let jsonobj = {
name: "Ironman",
power: "vibranium",
student: "spiderman",
identity: "Tony stark"
}
console.log(jsonobj)
The output for this which I got is:
{name: 'Ironman', power: 'vibranium', student: 'spiderman', identity: 'Tony stark'}
identity: "Tony stark"
name: "Ironman"
power: "vibranium"
student: "spiderman"
I was expecting it in the same order as how I gave it in the input, not in a sorted manner.