Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript problems

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

javascript coding problems

1. factorialize a number
2. fibonacci
3. truncate strings
Comment

JavaScript problems

/*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)
}
Comment

javascript program problems

Print all even numbers from 0 – 10. ...
Comment

PREVIOUS NEXT
Code Example
Javascript :: Sets can be used to store __________. in js 
Javascript :: var 
Javascript :: Array of indexOf 
Javascript :: react native image slider 
Javascript :: how to link js function to button 
Javascript :: jquery method 
Javascript :: if is a string javascript 
Javascript :: nodejs cluster 
Javascript :: try catch throwing error in javascript 
Javascript :: nodejs vs python 
Javascript :: jq json 
Javascript :: js function definition 
Javascript :: convert all styles to inline style javascript 
Javascript :: lettre au hasard javascript 
Javascript :: asyncio.sleep in javascript 
Javascript :: discord.js reply to message author 
Javascript :: axios async await 
Javascript :: what is a node 
Javascript :: timer javascript 
Javascript :: get x y z position of mouse javascript 
Javascript :: javascript block link action 
Javascript :: react native get source maps 
Javascript :: frame-grab js 
Javascript :: unslick if more then 
Javascript :: mongoose query same field with different values 
Javascript :: NativeKeyboard - NativeKeyboard - NativeKeyboard - NativeKeyboard]: NullInjectorError: No provider for NativeKeyboard! 
Javascript :: example of a traditional NetSuite search 
Javascript :: await zoomus.joinmeeting crashing app react native 
Javascript :: how to add theme attribute to :root 
Javascript :: no styles are appearing in angular calendar 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =