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]
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 ...
Description: Given an array of integers. Return an array, where the first element is the count of positives numbers and the second element is sum of negative numbers. If the input array is empty or null, return an empty array. Example For input [1, 2, ...
/* Description: Create a function that returns the CSV representation of a two-dimensional numeric array. Example: ...