PowerShell - Functions
What is wrong with this PowerShell function parameter declaration?
function Sample { param([string]$text =) Write-Output $text }function Sample { param([string]$text =) Write-Output $text }[string]$text = which ends with an equals sign but no value.$text = 'default'. Leaving it empty causes a syntax error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions