코딩 테스트/test_javaScript

[코딩테스트/javaScript] 내적

ijooha 2024. 12. 26. 13:01

function solution(a, b) {
    let answer = 0;
    
    for (i=0; i<a.length; i++) {
        answer = answer + a[i]*b[i];
    } return answer;
}