Answers for "powershell function return"

0

powershell function return

function Add-Numbers{
    param(
        [int]$a = 6,
        [int]$b= 10
    )
    return  $a + $b  # note this return part
}


$store = Add-Numbers -a 10 -b 20

Write-Output $store
Posted by: Guest on April-14-2022

Browse Popular Code Answers by Language