BLOG

JavaScript Challenge Internship to CEO #15/54
Task of Challenge #15/54 Create a function that will find the nth Fibonacci number using recursion. Fibonacci series: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, … . Use nth = 14 Solution Explanation The Fibonacci numbers are the numbers in the following integer sequence.0, 1,...
JavaScript Challenge Internship to CEO #14
Task of Challenge #14/54 Print the first 10 Fibonacci numbers without recursion. Fibonacci series: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ... Solution Explanation We start with the creation of the for loop. We have to define the loop is running from 2 to 10 in order to get...
JavaScript Challenge Internship to CEO #13
Task of Challenge #13/54 Find the maximum number in an array of numbers. The array: [-21, 113, -34, 1, -9, 5, 99, 1, 0]. Solution Explanation To accomplish our task, we create a function called findMax() and pass in our array. Inside the body, we need to create a...
JavaScript Challenge Internship to CEO #12
Task of Challenge #12/54 Create a function that receives an array of numbers and returns an array containing only the positive numbers. The array: [-65, 11, -5, 1, -19, 45, 19, 0, 1]. Solution Explanation To accomplish our task, we create a function called...
JavaScript Challenge Internship to CEO #11
Task of Challenge #11/54 Calculate the average of the numbers in an array of numbers. The array: [2, 5, 17, 81, 9]. Solution Explanation How to calculate an average A calculated "central" value of a set of numbers. To calculate it: add up all the numbers, then divide...
JavaScript Challenge Internship to CEO #10
Task of Challenge #10/54 Calculate the sum of numbers in an array of numbers. The array: [1, 9, -19, 3, 5, 3, 7, 14, 91]. Solution Explanation To accomplish our task, we need to iterate over the array and build the sum out of each element. Since we aren't so...
JavaScript Challenge Internship to CEO #09
Task of Challenge #09/54 Create a function that will convert from Fahrenheit to Celsius. Convert -38 degree Fahrenheit. Solution Explanation How to convert Celsius to Fahrenheit The temperature T in degrees Fahrenheit (°F) is equal to the...
JavaScript Challenge Internship to CEO #08
Task of Challenge #08/54 Create a function that will convert from Celsius to Fahrenheit. Convert 0 degree Celsius. Solution Explanation How to convert Celsius to Fahrenheit The temperature T in degrees Fahrenheit (°F) is equal to the...
JavaScript Challenge Internship to CEO #07
Task of Challenge #07/54 Calculate the sum of odd numbers greater than 9 and less than 30 a for-loop . Solution Explanation To accomplish our task, we should remember challenge #02 because back then, the task was to print out every odd number below 99. That means we...
JavaScript Challenge Internship to CEO #06
Task of Challenge #06/54 Calculate 9! a for-loop . Solution Explanation To create the factorial of 9 we make almost the same as in challenge #05 but with a different loop body code block. Last time we used this statement to gather the accumulated sum sum+=i. Knowing a...
Contact
info@arnoldcode.com
Wustbacher Str 13, 42929, Germany, EU
Monday-Friday: 8am – 5pm
Get Started
Grow your professional career with Arnold Code Academy