Skip to main content

· One min read
#This is a string variable.
$Var = "Hello World!"
#This is a literal string variable.
$Var = 'Hello World!'
#You can also cast the variable type using the [string] class
[String]$var = "Hello World!"