PowerShell - Variables and Data Types
Identify the error in this PowerShell code snippet:
$ht = @{ 'x' = 10 }
$ht.Add('x', 20)$ht = @{ 'x' = 10 }
$ht.Add('x', 20)$ht is created with key 'x' = 10.$ht.Add('x', 20) tries to add a duplicate key 'x', which causes a runtime error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions