JavaScript Wiki

Question:

b' I have a JavaScript object. Is there a built-in or accepted best practice way to get the length of this object?const myObject = new Object();myObject["firstname"] = "Gareth";myObject["lastname"] = "Simpson";myObject["age"] = 21; '

Solution : https://worcraft-algeria-dz.com/howto/68/Length-of-a-JavaScript-object/ | Source : https://worcraft-algeria-dz.com/