What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-08-31 13:58:02
devicemotionevent
window.onload = function () { // Check if is IOS 13 when page loads. if ( window.DeviceMotionEvent && typeof window.DeviceMotionEvent.requestPermission === 'function' ){ // Everything here is just a lazy banner. You can do the banner y... Add solution -
Javascript 2021-08-28 00:00:02
second largest number in array javascript
var secondMax = function (){ var arr = [20, 120, 111, 215, 54, 78]; // use int arrays var max = Math.max.apply(null, arr); // get the max of the array arr.splice(arr.indexOf(max), 1); // remove max from the array return Math.max.apply(nul... Add solution
Best helpers
Ranking is empty