I didn't know either until I did this.
var element = document.createElement("div");
var count = 0;
for (var index in element.style) count++;
console.log(count); // 413
I didn't know either until I did this.
var element = document.createElement("div");
var count = 0;
for (var index in element.style) count++;
console.log(count); // 413
For further actions, you may consider blocking this person and/or reporting abuse
Thanks for visiting DEV, we’ve worked really hard to cultivate this great community and would love to have you join us. If you’d like to create an account, you can sign up here.
Ninxe -
Rajasegar Chandran -
Daniel -
💡Piyush Kesarwani -
Once suspended, sadick will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, sadick will be able to comment and publish posts again.
Once unpublished, all posts by sadick will become hidden and only accessible to themselves.
If sadick is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Sadick.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community 👩💻👨💻 safe. Here is what you can do to flag sadick:
Unflagging sadick will restore default visibility to their posts.
Top comments (4)
You would need to exclude non-CSS object properties to accurately count:
My browser (Chrome) has 439 ;-)
Thanks, i completely overlooked the
hasOwnProperty
method. Nice catch 👍Can do instead
know that some properties are only SVG related.
-100