I dont understand where the 7 comes from so I am having a real fun time with this one. Can someone explain this in clear english?
Your code so far
// Setup
var processed = 0;
function processArg(num) {
return (num + 3) / 5;
}
// Only change code below this line
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
.
Challenge: Assignment with a Returned Value
Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
Hi @clearwater1377 !
Welcome to the forum!
We have a function called processArg that takes in an argument of num
function processArg(num)
The only thing this function does is the following code:
return (num + 3) / 5;
If we want to test this function we need to call it and use an actual number.
If you remember in this lesson this is how you call a function
Example using the number 1
processArg(1)
So when the function is called it will execute this piece of code and return the value.
return (1 + 3) / 5;
//result=.8
Call the function using 7 instead of 1 and assign that function call to the variable.
FCC instructions
assign its return value to the variable processed
.
You solution should be one line of code.
Hope that helps!
I should have pulled out my calculator sooner (BEDMAS) lol. I feel kinda dumb now but maybe ive been looking at this screen for to long and need a break.
Thanks for the prompt reply!
system
Closed
July 23, 2021, 10:59am
5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.