We have an array and a function. Call this function inside yourFunction() for each element of the given array.
Array iterating
Callback
Report a typo
Sample Input 1:
[ 'red', 'green', 'blue' ]Sample Output 1:
RED
GREEN
BLUEWrite a program in JavaScript
function upCase(str) {
console.log(str.toUpperCase());
}
function yourFunction(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.