So far you’ve learned about three different data types:

  • numbers
  • strings
  • booleans

Let’s put your knowledge to work!

In the code editor, we’ve listed three variables, each equal to a different datatype. Try choosing a function and see what it outputs.


Now, let’s change the values of the variables! Press the run button, then select a function from the dropdown menu and see how it evaluates each value.

  • What happens if you change the value, but keep the data type?
  • What happens if you swap out the data type?

Any time that you change the code, make sure to run your code again! Otherwise, the computer won’t know that you made a change.

Sign up to start coding

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?