PowerShell - Operators
Find the error in this PowerShell code using ternary operator:
$score = 85
$grade = $score -ge 90 ? 'A' : $score -ge 80 ? 'B' : 'C'
$score = 85
$grade = $score -ge 90 ? 'A' : $score -ge 80 ? 'B' : 'C'
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions