Easy way two double values in Array
Welcome ๐,
In this article, I will be showing an Easy way to double values in the array
Method - 1
const numbers = [3, 5, 7, 9, 11, 13]
const doubled =[]
for(let i = 0; i < numbers.length; i++){
doubled.push(numbers[i]*2)
}
console.log(doubled)
...
h.dhairyashah.dev1 min read