https://www.codewars.com/kata/57096af70dad013aa200007b/train/javascript Your Task Given an array of Boolean values and a logical operator, return a Boolean result based on sequentially applying the operator to the values in the array. Examples booleans = [True, True, False], operator = "AND" True AND True -> True True AND False -> False return False booleans = [True, True, False], operator = "OR" True OR True -> True True OR False -> True return True booleans = [True, True, ...
IT Community and Answers Latest Questions
Build a function that returns an array of integers from n to 1 where n>0. Example : n=5 –> [5,4,3,2,1]
/* Description: Create a function that returns the CSV representation of a two-dimensional numeric array. Example: ...
Given an array of integers your solution should find the smallest integer. For example: Given [34, 15, 88, 2] your solution will return 2 Given [34, -345, -1, 100] your solution will return -345 You can assume, for the purpose of this kata, that the supplied array will not be ...
Time to test your basic knowledge in functions! Return the odds from a list: [1, 2, 3, 4, 5] --> [1, 3, 5] [2, 4, 6] --> []
Given 2 strings, a and b, return a string of the form short+long+short, with the shorter string on the outside and the longer string on the inside. The strings will not be the same length, but they ...