pa mmj portal
let count = 10000;
console.time('Total time')
for (let i = 0; i < count; ++i) {
setTimeout(() => {
if (--count === 0) {
console.timeEnd('Total time')
}
}, i / 10); // Set 10 timeouts for each millisecond
}function average(nums) {
return nums.reduce((a, b) => (a + b)) / nums.length;
}
function reverseString(input)
{
var output = "";
for(var i = input.length - 1; i >= 0; i--) {
output += input[i];
}
return output;
}
Also in JavaScript:
- disable input angular
- react-native-screens
- react native header
- python convert requests response to json
- dom is loaded
- hark javascript
- event listener to elements with class
- javascript get data-id attribute
- golang get unknown json request data
- in select option how to make one default in angular
- document.addEventListener("backbutton
- js onscroll event
- enable disable click on div jquery
- react redirect after login
- javascript get last element in an array
- node mongoose save document
- split and join in node js
- scroll to top when routing angular
- python vs javascript
- js random id
- sinh(x)
- how to check if 2 images are touching js
- componentwillreceiveprops hooks
- how to make item not dragable in react-sortablejs