DEV Community

Discussion on: Designing a Stars Rating program in vanilla JS

Collapse
 
piclez profile image
Peter WD

Great article Uriel! I think your 3rd line should be:

star.getAttribute('data-num')

Thanks!

Collapse
 
urielbitton profile image
Uriel Bitton

Yes just corrected it thanks for pointing that out!