The given function receives an integer array. Double every element and return the modified array.
Array iterating
Double
Report a typo
Sample Input 1:
[ 1, 2, 3 ]Sample Output 1:
[ 2, 4, 6 ]Write a program in JavaScript
function doubleA(arr) {
//write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.