Task: Get Size of JSON Object
Task: Get Size of JSON Object: a task in Terminal-Lego-15k (Harbor dataset). In JavaScript, JSON objects do not have a .length property like arrays do. When you try to use .length on a plain object, it returns undefined . Your task is to write a Node.js script that correctly determines the size…
The task
In JavaScript, JSON objects do not have a `.length` property like arrays do. When you try to use `.length` on a plain object, it returns `undefined`. Your task is to write a Node.js script that correctly determines the size (number of keys/properties) of JSON objects.
Part of PrimeIntellect/Terminal-Lego-15k.