
1
Return Sum
<p>Create a function sum() that returns the sum of the two numbers passed as its arguments. For example, sum(2,5) should return 7; sum(3,10) should return 13. <br></p> 
2
Countdown by 8
<p>Log positive numbers starting at 2019, counting down by 8.<a datarename="html" href="http://test.datacompass.io/hh/admin/3349/hh_ulD65vQw3zd3kB/1580433510148#" alt="HTML" rel="html" role="button" ... 
3
Fahrenheit to Celcius
<p>Kelvin wants to convert between temperature scales. Create celciusToFahrenheit(cDegrees) that accepts a number of degrees in Celcius, and returns the equivalent temperature as expressed in Fahrenhe ... 
4
Biggie Size
<p>Given an array, write a function that changes all positive numbers in the array to “big”. Example: makeItBig([1,3,5,5]) returns that same array, changed to [1,"big","big",5].</p> 
5
Double Vision
<p>Given array, create a function to return a new array where each value in the original has been doubled. Calling double([1,2,3]) should return [2,4,6].</p> 
6
Return Array Count Greater than Y
<p>Given an array and a value Y, count and return the number of array values greater than Y. For example, returnArrayCountGreaterThanY( [2,3,5], 4) should return 1 as there is only one element in the ... 
7
Sigma
<p>Implement function sigma(num) that given a number, returns the sum of all positive integers up to number (inclusive). Ex.:sigma(3)=6(or1 + 2 + 3); sigma(5)=15(or1 + 2 + 3 + 4 + 5).</p> 
8
Factorial
<p>Just the Facts, ma’am. Factorials, that is. Write a function factorial(num) that, given a number, returns the product (multiplication) of all positive integers from 1 up to number (inclusive). For ... 
9
Swap Toward the Center
<p>Given array, swap first and last, second and secondtolast, third and thirdto last, etc. Have the function return this swapped array. For example swapTwoardCenter([true,42,"Ada",2,"pizza"] ... 
10
Threes and Fives
<p>Create threesFives(n) that adds values from 1 and n (inclusive) if that value is not divisible by 3 or 5. Return the final sum.</p> <p>For example, threesFives(10) returns 22 as it only returns th ... 
11
Fibonacci
<p>Create a function to generate Fibonacci numbers. In this famous mathematical sequence, each number is the sum of the previous two, starting with values 0 and 1. Your function should accept one argu ... 
12
sumToOne
<p>Kaitlin sees beauty in numbers, but also believes that less is more. Implement sumToOne(num) that sums a given integer’s digits repeatedly until the sum is only one digit. Return that onedigit res ... 
13
Clock Hand Angles (check)
<p>Regardless of how hard a Dojo student works (and they should work hard), they need time now and then to unwind – like hands on a clock. Traditional clocks are increasingly uncommon, but most can st ... 
14
Is Prime
<p>Return whether a given integer is prime. Prime numbers are only evenly divisible by themselves and 1. Many highly optimized solutions exist, but for now just create one that is easy to understand a ... 
15
Extractomatic
<p>Create the extractDigit(num,digitNum) function that given a number and a digit number, returns the numeral value of that digit. 0 represents the ones digit, 1 represents the tens digit, etc. Given ... 
16
Array: Reverse
<p>Given a numerical array, reverse the order of values, inplace. The reversed array should have the same length, with existing elements moved to other indices so that order of elements is reversed. ... 
17
Filter Range
<p>Alan is good at breaking secret codes. One method is to eliminate values that lie within a specific known range. Given arr and values min and max, retain only the array values between min and max. ... 
18
Array: Concat
<p>Replicate JavaScript’s concat(). Create a standalone function that accepts two arrays. Return a new array containing the first array’s elements, followed by the second array’s elements. Do not alte ... 
19
Skyline Heights
<p>Lovely Burbank has a breathtaking view of the Los Angeles skyline. Let’s say you are given an array with heights of consecutive buildings, starting closest to you and extending away. Array [1,7,3] ... 
20
Array: SecondtoLast
<p>Return the secondtolast element of an array. Given [42,true,4,"Kate",7], return "Kate". If array is too short, return null.</p> 
21
Array: NthtoLast
<p>Return the element that is Nfromarray’send. Given ([5,2,3,6,4,9,7],3), return 4. If the array is too short, return null.</p> 
22
Array: Remove Range
<p>Given array, and indices start and end, remove vals in that index range, working inplace (hence shortening the array). Given ([20,30,40,50,60,70],2,4), change to [20,30,70] and return it.</p> 
23
Credit Card Validation
<p>The Luhn formula is sometimes used to validate credit card numbers. Create the function isCreditCardValid(digitArr) that accepts an array of digits on the card (1319 depending on the card), and re ... 
24
Zip it
<p>Create a standalone function that accepts two arrays and combines their values sequentially into a new array, at <em>alternating indices </em>starting with first array. Extra values from either arr ... 
25
Parens Valid
<p>Create a function that, given an input string <strong>str</strong>, returns a boolean whether parentheses in <strong>str </strong>are valid. Valid sets of parentheses always open before they close, ... 
26
Bubble Sort
<p>Understanding how to implement basic sorting algorithm is a good exercise. For this particular challenge, you are to implement bubble sort.</p> <p>The animation below demonstrates how bubble sort ... 
27
Multiple Table
<p>Create a function that prints a multiplication table such as follows:</p> <p>multiTable(2,2) should print</p> <p>1 2</p> <p>2 4</p> <p></p> <p>multiTable(3,3) should print</p> <p>1 2 3</p> < ... 
28
Two Dimensional Array Part I
<p>Create a function that returns a two dimensional array containing bunch of zeros. For example twoDimensional(2,5) should return a following array:</p> <p>[</p> <p>[ 0, 0, 0, 0, 0],</p> <p>[ 0, 0 ... 
29
Two Dimensional Array Part II
<p>Create a function twoDimensional(row, column) that returns a two dimensional array containing bunch of zeros but where the outer values are filled with ones. For example twoDimensional(5,5) should ...