function (함수) 란? functions allow us to write more maintainable code, because with functions, we ca create resuable chunks of code instead of writing the same code over and over again. : Don't repeat yourself! 자주 쓰이는 수식을 function으로 만들어 필요할 때마다 불러 쓸 수 있으므로, 매번 같은 코드를 반복하지 않아도 됨. function을 만드는 방법 1. Declaration function calcAge(birthYear) { return 2021 - birthYear; } calcAge(1991); 2. Expression co..