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

Functions — Example 83

Quick explanation + ready code for: Functions.

PowerShell Functions Back to examples
Back to language
Syntax: Functions in PowerShell. ID: #83

Code

function Add($a,$b){ $a+$b }
Add 4 7

Notes

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