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 ...

## IT Community and Answers Latest Questions

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, ...

Build a function that returns an array of integers from n to 1 where n>0. Example : n=5 –> [5,4,3,2,1] Related Questions and Answers:Convert number to reversed array of digits.js

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, ...

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 ...

Description:get ascii value of characterwrite a function getASCII which inputs a character and returns the corresponding ascii value for that character. Example : getASCII(‘A’) => 65for ASCII table, you can refer to http://www.asciitable.com/ const getASCII = c ...