diff --git a/.gitignore b/.gitignore index 9daa8247..42ffb40b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .DS_Store + node_modules diff --git a/Challenge/dbtjsghk21/solve.js b/Challenge/dbtjsghk21/solve.js new file mode 100644 index 00000000..954444a4 --- /dev/null +++ b/Challenge/dbtjsghk21/solve.js @@ -0,0 +1,12 @@ +// write your codes +function solution(inputArray) { + const answer = []; + inputArray.forEach((item, index) => { + answer.push(item + "%"); + }); + return answer; +} +const answ = solution([100, 10, 20, 40]); +console.log(answ); + +exports.solution = solution;