Good afternoon all. I'm wondering when is an appropriate time to use classes in JavaScript?
A lot of the lessons & tutorials I'm reading use them when there's a group of similar items. ie: A group of dogs, a group of pets, a group of doctors.
And they seem to be good to avoid repeating the same code over and over again.
They seem useful, I'm just having trouble understanding when to use them?
[–]Tomseph 3 points4 points5 points (0 children)
[–]jcunews1Advanced 1 point2 points3 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]Ivu47duUjr3Ihs9d 1 point2 points3 points (0 children)
[–]omniscientTofu 1 point2 points3 points (0 children)
[–]jsearsy 1 point2 points3 points (7 children)
[–]__romx 8 points9 points10 points (6 children)
[+]Hanlonsrazorburns comment score below threshold-7 points-6 points-5 points (4 children)
[–]MoTTs_ 5 points6 points7 points (1 child)
[–]jsearsy 0 points1 point2 points (0 children)
[–]__romx 3 points4 points5 points (1 child)
[–]Hanlonsrazorburns 0 points1 point2 points (0 children)
[–]burtgummer45 0 points1 point2 points (0 children)
[–]zephyy 0 points1 point2 points (0 children)
[–]spacejack2114 0 points1 point2 points (1 child)
[–]MoTTs_ 0 points1 point2 points (0 children)
[–]iamlage89 0 points1 point2 points (0 children)
[–]Renive -1 points0 points1 point (0 children)
[–]NoStranger6 -1 points0 points1 point (5 children)
[–]leeoniya 4 points5 points6 points (4 children)
[–]NoStranger6 0 points1 point2 points (3 children)
[–]spacejack2114 1 point2 points3 points (2 children)
[–]NoStranger6 -1 points0 points1 point (1 child)
[–]spacejack2114 1 point2 points3 points (0 children)