[javascript] Function , Array.from() , arguments , console.log(myFunction(10,20)); // x와 y 값 구하기 응용버전
[javascript] Function , Array.from() , arguments , console.log(myFunction(10,20)); // x와 y 값 구하기 응용버전 DRY 규칙 반복하지 마세요 DRY D- Don't R-Repeat Y-Yourself 기본 Function function multiply(x, y) { return x * y; } const result1 = multiply(2, 4); console.log(result1); 출력 8 const result2 = multiply(5,6); 출력 30 Array.from() 메서드를 사용하여 이터러블 객체 // Array.from() 메서드를 사용하여 이터러블 객체를 배열로 변환합니다. const iterable = "He..
2023. 7. 29.