How to define optional parameters to a function? Get link Facebook X Pinterest Email Other Apps - October 25, 2020 How to define optional parameters to a function? functio myFunction(row = 1, data = []){ // ... function body } Get link Facebook X Pinterest Email Other Apps Comments
Break loop once condition match JavaScript - October 25, 2020 const arr = [1,2,3]; Iterations loops: for every() some() We can use: for(let item of arr){ console.log(item); if(item == 2){ break; } } Or for (var i = 0; i < arr.length; i++) { console.log(arr[i]); if (arr[i] === 2) { break; } } Or arr.every((elm) => { console.log(elem); if (elm === 2) { return true; } return false; }); Or arr.every((elm) => { console.log(elem); if (elm === 2) { return false; } return true; }); Read more
Advertiserment website design - October 19, 2020 Below one of the sample design you can refer for advertisement agencies. Read more
Comments