--Some problems you could try--
1. Math:
Print the sum of the first 2000 Fibonacci numbers
Print angle given 2 intersecting lines
2. Physics:
Print max load of a crane given counter weight's mass and arm length
Print horizontal distance projectile will travel given initial speed and launch angle.
3. Rendering:
Draw a rotating cube
Draw the mandelbrot fractal
4. Game:
Flappy bird copy
A first person shooter
Car driving game
5. App:
Play notifications sounds of common apps every x seconds
1. factorialize a number
2. fibonacci
3. truncate strings
/*Given five positive integers,
find the minimum and maximum values
that can be calculated by summing exactly four of the five integers.
Then print the respective minimum and maximum values
as a single line of two space-separated long integers.*/
function miniMaxSum(arr) {
let sumMin=0;
let sumMax=0;
for(let i=0;i<arr.length;i++){
sumMin+=arr[i]
sumMax+=arr[i]
}
let max = Math.max(...arr);
let min = Math.min(...arr);
console.log(sumMin-max ,sumMax-min)
}
Print all even numbers from 0 – 10. ...