Try running the code below. What is the result?
5
What will be an ideal response?
Why did you get that? (Hint: “becomes the name for the value of.”)
The console prints out 5 as the variable myFunc is now the same value as the variable abs. In this case, myFunc is now equivalent to the absolute value function, which returns the absolute value of -5.
Computer Science & Information Technology