The sign | | is used to refer to the absolute value of an expression or integer.
Given an integer x
[tex]\begin{gathered} |x|=x \\ |-x|=x \end{gathered}[/tex]The absolute sign will always return a positive value.
Therefore, the absolute value of 2 is 2.
The correct option is B.