I'm looking at some problems and I see something like this

| -2 |
what do those 2 lines on the outside mean?

Those two lines mean the absolute value of. So if it was |-2|, the absolute value of |-2| would be 2.

I hope that helps! :)