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

Arrays / Lists — Example 42

Quick explanation + ready code for: Arrays / Lists.

PowerShell Arrays / Lists Back to examples
Back to language
Syntax: Arrays / Lists in PowerShell. ID: #42

Code

$arr=@(13,14,15)
$arr | ForEach-Object { $_ }

Notes

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