Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function processOddNumbers(input) {
- let arr = [];
- for (let i = 1; i < input.length; i += 2){
- arr.push(input[i] * 2);
- }
- console.log(arr.reverse().join(' '));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement