• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

What if I want to know the number of properties in my object?

Object.length doesn't work.

javascriptobjects
20th Nov 2016, 6:48 PM
Anna Molly
Anna Molly - avatar
1 Answer
0
try Object.keys ().length
21st Nov 2016, 11:21 AM
Kristiaan
Kristiaan - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Guys I don't know anything about cooding who can help me pls
1 Votes
Why can’t I use double “ in python?
1 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
1 Votes
Coding for Cybersecurity
1 Votes
Need help
1 Votes
Pointers in c#
1 Votes
You’re free to give me your advice! 🚹
1 Votes
Decorators in python.
2 Votes
Salut tout le monde
1 Votes
How can i isntall modules
1 Votes