DEV Community

Discussion on: What are your biggest struggles in learning JavaScript?

Collapse
 
fezvrasta profile image
Federico Zivolo

DOM APIs are probably the hardest part. You never know all the nuances of each of those methods...

For instance, just yesterday I found a bug in my library because I used .offsetParent to get the first "positioned parent node", and I discovered that this property will give me the nearest "table" element if no positioned parents are available...