DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Variables — Example 14

Quick explanation + ready code for: Variables.

PowerShell Variables Back to examples
Back to language
Syntax: Variables in PowerShell. ID: #14

Code

$name="DrSchool"
$count=5
Write-Host $name $count

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.