TL;DR: Enums have supporting functions like valueOf, values or enumValues what makes them easier to iterate over or serialize.
確定! 回上一頁