diff --git "a/Insung-Jo/level_0/n\354\235\230\342\200\205\353\260\260\354\210\230\342\200\205\352\263\240\353\245\264\352\270\260.js" "b/Insung-Jo/level_0/n\354\235\230\342\200\205\353\260\260\354\210\230\342\200\205\352\263\240\353\245\264\352\270\260.js" new file mode 100644 index 0000000..1cbc869 --- /dev/null +++ "b/Insung-Jo/level_0/n\354\235\230\342\200\205\353\260\260\354\210\230\342\200\205\352\263\240\353\245\264\352\270\260.js" @@ -0,0 +1,10 @@ +function solution(n, numlist) { + let result = []; + + for(let i = 0; i < numlist.length; i++){ + if(numlist[i] % n === 0){ + result.push(numlist[i]); + } + } + return result; +} \ No newline at end of file diff --git "a/Insung-Jo/level_0/\353\260\260\354\227\264\354\235\230\342\200\205\354\234\240\354\202\254\353\217\204.js" "b/Insung-Jo/level_0/\353\260\260\354\227\264\354\235\230\342\200\205\354\234\240\354\202\254\353\217\204.js" new file mode 100644 index 0000000..3de991f --- /dev/null +++ "b/Insung-Jo/level_0/\353\260\260\354\227\264\354\235\230\342\200\205\354\234\240\354\202\254\353\217\204.js" @@ -0,0 +1,12 @@ +function solution(s1, s2) { + let result = 0; + + for (let i = 0; i < s1.length; i++) { + for (let j = 0; j < s2.length; j++) { + if (s1[i] === s2[j]) { + result++; + } + } + } + return result; +}