Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Find the missing number in array
// Find the missing number in array // Using total count algorithm var arr = [1,2,3,5,6,7,8,9]; var total = (arr.length+1)*(arr.length+2)/2; for(i = 0; i < arr.length; i++) { total = total - arr[i]; } console.log(total);
run
|
edit
|
history
|
help
0
Add property to object
To compare; creating async methods in javascript
horsevalue
localhost:8080/?name=2017&lname=July
Accept matching keys in object
Compare 2 arrays and fill 1 or 2
Holyboi
JS - check 2 arrays, add 1 or 2, logical operations
Include object in a query string
Lowertoupper