diff --git "a/Insung-Jo/level_0/\353\266\200\353\266\204\342\200\205\353\254\270\354\236\220\354\227\264.js" "b/Insung-Jo/level_0/\353\266\200\353\266\204\342\200\205\353\254\270\354\236\220\354\227\264.js" new file mode 100644 index 00000000..d163c464 --- /dev/null +++ "b/Insung-Jo/level_0/\353\266\200\353\266\204\342\200\205\353\254\270\354\236\220\354\227\264.js" @@ -0,0 +1,3 @@ +function solution(str1, str2) { + return str2.includes(str1) ? 1 : 0; +} diff --git "a/Insung-Jo/level_0/\353\266\200\353\266\204\342\200\205\353\254\270\354\236\220\354\227\264\354\235\270\354\247\200\342\200\205\355\231\225\354\235\270\355\225\230\352\270\260.js" "b/Insung-Jo/level_0/\353\266\200\353\266\204\342\200\205\353\254\270\354\236\220\354\227\264\354\235\270\354\247\200\342\200\205\355\231\225\354\235\270\355\225\230\352\270\260.js" new file mode 100644 index 00000000..2720bdaa --- /dev/null +++ "b/Insung-Jo/level_0/\353\266\200\353\266\204\342\200\205\353\254\270\354\236\220\354\227\264\354\235\270\354\247\200\342\200\205\355\231\225\354\235\270\355\225\230\352\270\260.js" @@ -0,0 +1,3 @@ +function solution(my_string, target) { + return my_string.includes(target) ? 1 : 0; +} diff --git "a/Insung-Jo/level_1/\353\202\264\354\240\201.js" "b/Insung-Jo/level_1/\353\202\264\354\240\201.js" new file mode 100644 index 00000000..9c0587d6 --- /dev/null +++ "b/Insung-Jo/level_1/\353\202\264\354\240\201.js" @@ -0,0 +1,9 @@ +function solution(a, b) { + let sum = 0; + + for (let i = 0; i < a.length; i++) { + sum += a[i] * b[i]; + } + + return sum; +}