Question: use proper ES6 syntax including using let/const properly. do not use Regular Expressions (Regex) HINT: Refer to Mozilla Developer Docs as needed Problem 2 -
use proper ES6 syntax including using let/const properly.
do not use Regular Expressions (Regex)
HINT: Refer to Mozilla Developer Docs as needed
Problem 2 -
- Write a function called sumEvenOdd
- This function takes one argument which is a number
- This function sums all the digits of a given number and determines if it is even or add
- This function returns the string:
- The sum of the digits for
is
OUTPUT Example:
sumEvenOdd(11)
output: The sum of the digits for 11 is even
sumEvenOdd(12345)
output: The sum of the digits for 12345 is odd
THIS IS IN JAVASCRIPT
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
