#frontend-development
Read more stories on Hashnode
Articles with this tag
let data = [100,2000,8,2,90000,8] // let res = new Set(data) let res = data.filter((ele, index, arr)=>arr.indexOf(ele)!==index)
const arr = [2, 8, 7, 9] const largetValue = (arr) => { let firstLargetValue = Math.max(...arr) index = arr.indexOf(firstLargetValue) ...
Local Storage Local storage is used to persist data in the browser level. Data is not lost even after the browser is closed, or even after the OS is...
let n = 15; let count = 0; while (n != 0) { n = n & n << 1 count++ } console.log(count)