May 2024
Intermediate to advanced
826 pages
18h 13m
English
A variable in a programming language is used to give a name to a piece of information or data. A variable can be used and re-used in the console, script, or function, or any other piece of code.
A variable may be of any .NET type or object instance. It may contain a string such as "Hello World", an integer such as 42, a decimal such as 3.141, an array, a hashtable, a ScriptBlock, and so on. Everything a variable might refer to is an object when used in PowerShell.
This chapter covers the following topics:
A variable must be given a name when it ...
Read now
Unlock full access