code 부분에 JavaScript 배열의 내장함수를 이용한 코드를 작성하여 다음과 같은 결과를 출력해 주세요.
code
데이터 const arr = [100, 200, 300] // code ...
결과 [100, 150, 250, 500]