PowerShell - Variables and Data Types
Which of the following is the correct syntax to add a key-value pair
'Name' = 'Alice' to an existing hash table $person?'Name' = 'Alice' to an existing hash table $person?$person.Add('Name', 'Alice'). Note that the Add() method specifically adds new entries.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions