Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
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
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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started