สามารถเปลี่ยนเป็น Arrow Function ได้ดังต่อไปนี้
One of these new additions was arrow function syntax. Arrow function syntax (or just "arrow syntax") provides a different method of writing functions, in a way that is often shorter and mostly quicker to write and comprehend once you've grasped how the syntax works.
The arrow function exists since 2015 and is quite different from the classic functions. Let’s see how !