Good job making it to the end of the Objects and Arrays lesson! Objects are everywhere in PowerShell, and arrays are one of the most popular data structures in programming. We hope you will feel comfortable when you encounter them.

We learned the following in this lesson:

  • PowerShell objects
  • Properties and methods of objects
  • Creating custom objects using New-Object and hashtables
  • Adding properties and methods to custom objects
  • What arrays are and how to create them in multiple ways
  • Accessing and updating array items
  • Operators for arrays such as addition +, multiplication *, containment, and -join


Feel free to use the summary.ps1 file to work with more objects and arrays.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?