Welcome to the “Variables and Operators” lesson of your PowerShell journey. Regardless of our use case, one inevitable aspect of programming is storing and manipulating data to serve our needs. Data comes in various forms, such as:

  • Numbers (integers): 1, -99, 42
  • Text (strings): "Hello!", "BF1942"
  • Booleans: True, False
  • and more!

We will first cover various ways to create and use variables to store multiple types of data. We will then explore operators enabling us to perform arithmetic operations and compare the values of two or more pieces of data.

This interaction and manipulation of data, coupled with variables, will build the foundation required to write PowerShell scripts.


Press Next to get started!

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?