From 93aebe431020f9cc71211196d533fad1acd683ec Mon Sep 17 00:00:00 2001 From: AnJuHyun Date: Thu, 22 Aug 2024 16:22:59 +0900 Subject: [PATCH] commit --- "ox\355\200\264\354\246\210.js" | 12 ++++++++++++ "\354\230\271\354\225\214\354\235\264.js" | 13 +++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 "ox\355\200\264\354\246\210.js" create mode 100644 "\354\230\271\354\225\214\354\235\264.js" diff --git "a/ox\355\200\264\354\246\210.js" "b/ox\355\200\264\354\246\210.js" new file mode 100644 index 0000000..22022de --- /dev/null +++ "b/ox\355\200\264\354\246\210.js" @@ -0,0 +1,12 @@ +function solution(quiz) { + + return quiz.map((expression) => { + const [n1, sign, n2, equal, result] = expression.split(" "); + if (sign === "+") { + return Number(n1) + Number(n2) === Number(result) ? "O" : "X"; + } + else { + return Number(n1) - Number(n2) === Number(result) ? "O" : "X"; + } + }); + } \ No newline at end of file diff --git "a/\354\230\271\354\225\214\354\235\264.js" "b/\354\230\271\354\225\214\354\235\264.js" new file mode 100644 index 0000000..16ccaab --- /dev/null +++ "b/\354\230\271\354\225\214\354\235\264.js" @@ -0,0 +1,13 @@ +function solution(babbling) { + const str = ["aya", "ye", "woo", "ma"]; + var chk; + let answer = 0; + for(let i=0; i