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

18th Sep 2022, 8:54 AM
Hizand
Hizand - avatar
2 Réponses
+ 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();
18th Sep 2022, 9:33 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 1
Omg thank you mistar alex i stuck in 1 week with that tysm it work😭🙏🙏
19th Sep 2022, 4:31 AM
Hizand
Hizand - avatar