From 70771bd631042a823a58d3c57ff2eff13614ecf6 Mon Sep 17 00:00:00 2001 From: Micha Tab Date: Thu, 11 Oct 2018 07:17:32 +0300 Subject: [PATCH] r00tm4ker --- code/r00tm4n.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 code/r00tm4n.js diff --git a/code/r00tm4n.js b/code/r00tm4n.js new file mode 100644 index 0000000..fc01b24 --- /dev/null +++ b/code/r00tm4n.js @@ -0,0 +1,11 @@ +var even = function (arr) { + var count; + for (var i = 0; i < arr.length; i++) { + if (arr[i]%2 == 0) { + count ++; + } + } + return even; +} + +console.log(even([1,2,3,4,5,6,7,8,9])); \ No newline at end of file