// javascript
const solution = (num1, num2) => {
return num1 + num2
}
// typescript
const solution = (num1:number, num2:number):number => {
return num1 + num2
}
'프로그래머스(코딩 테스트) > Lv.0' 카테고리의 다른 글
머쓱이보다 키 큰 사람 (0) | 2024.10.15 |
---|---|
두 수의 차 (0) | 2024.10.15 |
더 크게 합치기 (0) | 2024.10.15 |
홀짝에 따라 다른 값 반환하기 (0) | 2024.10.15 |
특수문자 출력하기 (0) | 2024.10.15 |