Articles in this series
Write a function to find the smallest elements among three arguments. (You cannot use sorting methods.) Solution function solution(a, b, c){ ...
You have three sticks of length a, b and c. Write a program which determines if you can form a triangle out of those sticks. Solution /* ...
You would like to distribute one pencil to each of your students. Write a program which prints how many dozens of pencil you need if there are N...
Write a program which returns the sum of numbers from 1 to N Solution function solution(N){ let sum = 0; for (let i =...
You will be given few numbers in an array. Write a program which finds the smallest one among the numbers. Solution function solution(arr){ ...
You will be given few numbers in an array. Write a program which returns the sum of ODD numbers in array and the smallest ODD number. Solution We...