79425278

Date: 2025-02-09 16:53:20
Score: 1.5
Natty:
Report link

Object.entries(sampleobject);//this returns an array where each element itself is an array of key,value. [[key1,value1],['key2','value2'],['key3','value3']]... so when you query shop[i][j] it will act as a 2dimentional array it will first query shop[i] and later it fetches the inside array and again does[j] to find the value of that array

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Abhishek Patnaik