What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-23 00:22:09
find consecutives
var findMaxConsecutiveOnes = function (arr, number) { //check for boundries if(!number || !arr.length) return; // maximum number of consectuives let max = 0; // count homy many consecutives before it ends (why it's 1 ? because a lonely numbe... Add solution -
Javascript 2021-10-06 21:16:04
react fetch data in for loop
/* ORIGINAL CODE */ videoUrls=()=>{ let i=0; let urllist=[] for(i;i< this.state.data.length;i++){ fetch(`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${this.state.data[i].name}&key=xxxxxxxxxxx0`) .then(respo... Add solution