728x90 반응형 SMALL 개념262 chapter 2 ) 문자열을 화면에 출력하는 프로그램 #include void main(void){ printf("Be happy!"); printf("My friend"); return 0; } 코드 설명 : 1. main() 함수 1-1. printf() 문을 2줄 반복해서 각각 Be happy, My friend를 출력하도록 함 2. 반환 값 (return 0) 작성 2024. 5. 26. chapter 5) Array methods and arrow functions ### Initial Array - The `numbers` array is initialized with integers from `0` to `9`. ### Operations Chain - **Filter**: `numbers.filter((value) => value % 2 === 0)` filters the array to include only even numbers. The condition `value % 2 === 0` evaluates to `true` for even numbers. The result of this operation is an array of even numbers: `[0, 2, 4, 6, 8]`. - **Map**: `.map((value) => value * v.. 2024. 4. 3. 이전 1 ··· 63 64 65 66 다음 728x90 반응형 LIST