+ 1

Number of all HTML elements

where is the error ? element = document.createElement("div"); count = 0; for (let i in element.style) { count++; } console.log(count); console.log(element);

24th Dec 2023, 1:13 AM
CodeStory
CodeStory - avatar
1 Answer
+ 3
The title should be "The number of style properties of a div element." https://sololearn.com/compiler-playground/WO78kzA5qrsn/?ref=app
24th Dec 2023, 2:26 AM
Bob_Li
Bob_Li - avatar