Challenge: Variable Operations Practice
Task
Swipe to start coding
- Create a function named
manipulateNum. - Inside the function, create the variable
numand assign it the value29. - Increase the
numvariable by99. - Decrease the
numvariable by23. - The function should return an array with the three intermediate values of
numafter each operation:[29, 128, 105].
Do not print the values. Only return them from the function as an array in the specified order.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 5
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 2.5
Challenge: Variable Operations Practice
Swipe to show menu
Task
Swipe to start coding
- Create a function named
manipulateNum. - Inside the function, create the variable
numand assign it the value29. - Increase the
numvariable by99. - Decrease the
numvariable by23. - The function should return an array with the three intermediate values of
numafter each operation:[29, 128, 105].
Do not print the values. Only return them from the function as an array in the specified order.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 5
single