0
Sololearn wont let me retrieve height value from CSS using javascript
Ive spent a week trying to figure this one out. Sololearn keep bashing my skull with css value retrieval in JS. This is what i wrote https://code.sololearn.com/WZNKjRmQ2633/?ref=app Please help me what is the correct syntax to retrieve css height elemeng
2 Respuestas
+ 3
Hello. From whay I've understood, This is what you need:
var height = screenS.id.offsetHeight
console.log(height)
You get the value of #a's height, which is 240.
(the line 113 may give you a error, the last console.log();
+ 1
Omg thank you mistar alex i stuck in 1 week with that tysm it work😭🙏🙏