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 :: javascript get image data from clipboard 
Javascript :: Argument #1 ($client) must be of type AwsS3Client 
Javascript :: how to interrupt scroll with jquery 
Javascript :: how to remove a character from a string in javascript 
Javascript :: math question 
Javascript :: create immutable object in javascript 
Javascript :: vue js multiple dynamic classes 
Javascript :: mouse wheel scroll sections in react 
Javascript :: display array javascript 
Javascript :: findOne 
Javascript :: component navigation without changin the url react router 
Javascript :: if condition to whether json object has jsonarray or jsonobject 
Javascript :: how to fetch web page source code with javascript 
Javascript :: how to create a search engine with javascript 
Javascript :: why is my bot not going online discord.js 
Javascript :: windows 10 retiré le theme sombre explorateur 
Javascript :: timeout for javascript 
Python :: ignore warnings python 
Python :: get random line from file python 
Python :: python wait 1 sec 
Python :: python marker size 
Python :: print bold python 
Python :: pandas create empty dataframe 
Python :: items of a list not in another list python 
Python :: WARNING: There was an error checking the latest version of pip. 
Python :: Pandas: How to Drop Rows that Contain a Specific String 
Python :: how to simulate a key press in python 
Python :: incognito in selenium 
Python :: django previous url 
Python :: jupyter notebook plot larger 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =