Google for "Javascript ternary operator".

The ?: operator can be used as a shortcut for an if...else statement.

box is just the assigned name of the passed variable. It could be anything.