Double The Odds
Part of the Fundamentals section of Coddy's JavaScript journey — lesson 76 of 77.
Challenge
EasyWrite a function named doubleOdds that takes one input:
numbers- an array of numbers.
The function should:
- Double only the odd numbers in the array.
- Return the resulting array.
Try it yourself
function doubleOdds(numbers) {
// Write code here
}All lessons in Fundamentals
4Operators Part 2
Logical Operators Part 1Logical Operators Part 2Recap - Simple LogicLogical Operators Part 3Type Coercion7Bill Split Calculator
Welcome MessageCalculating The Tip And Total2Variables
NumbersStringBooleanNaming ConventionsEmpty VariablesRecap - Initialize VariablesConstants3Operators Part 1
Arithmetic OperatorsModulo OperatorArithmetic ShortcutsComparison OperatorsStrict vs Loose EqualityRecap - Simple Math6Basic IO
OutputOutput with VariablesType Conversion - Part 1Type Conversion - Part 2Recap - Till 120Recap - True or False