Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.

Question

What does this code return ?

function calculation {

param ($value)

"Please wait. Working on calculation..."

$value += 73

return $value

}

$a = calculation 14

Answer

PS> $a

Please wait. Working on calculation...

87

Question

What does this code return ?

function calculation {

param ($value)

"Please wait. Working on calculation..."

$value += 73

return $value

}

$a = calculation 14

Answer

?

Question

What does this code return ?

function calculation {

param ($value)

"Please wait. Working on calculation..."

$value += 73

return $value

}

$a = calculation 14

Answer

PS> $a

Please wait. Working on calculation...

87

If you want to change selection, open document below and click on "Move attachment"

**about_Return | Microsoft Docs**

$a return The following statement also returns the value of $a: return $a The following example includes a statement intended to let the user know that the function is performing a calculation: <span>function calculation { param ($value) "Please wait. Working on calculation..." $value += 73 return $value } $a = calculation 14 The "Please wait. Working on calculation..." string is not displayed. Instead, it is assigned to the $a variable, as in the following example: PS> $a Please wait. Working on calculat

$a return The following statement also returns the value of $a: return $a The following example includes a statement intended to let the user know that the function is performing a calculation: <span>function calculation { param ($value) "Please wait. Working on calculation..." $value += 73 return $value } $a = calculation 14 The "Please wait. Working on calculation..." string is not displayed. Instead, it is assigned to the $a variable, as in the following example: PS> $a Please wait. Working on calculat

status | not learned | measured difficulty | 37% [default] | last interval [days] | |||
---|---|---|---|---|---|---|---|

repetition number in this series | 0 | memorised on | scheduled repetition | ||||

scheduled repetition interval | last repetition or drill |

Do you want to join discussion? Click here to log in or create user.