Assignment with a returned value


#1

My hair is turning grey. What am I leaving out? I’ve been trying to figure this one out for hours now and I think I’m past the point of thinking straight.

These are my instructions–“Call the processArg function with an argument of 7 and assign its return value to the variable processed.”

<


#2

processed should have a value of 2
You should assign processArg to processed


#3

You may be overthinking this one (it happens). I recommend removing everything on rows 21-25 and reading the instructions again very literally. The example on rows 3-9 will look extremely similar to all of the code following that section, so you can use that as a comparison too. Right now, your code is declaring a new variable and a function as opposed to just “call[ing] the processArg function with an argument of 7 and assign[ing] its return value to the variable being processed.”

Chime back in if you’re still having trouble.