PowerShell - Control Flow
What will be the output of this PowerShell script?
foreach ($i in 1..5) {
if ($i -eq 3) { break }
Write-Output $i
}foreach ($i in 1..5) {
if ($i -eq 3) { break }
Write-Output $i
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions