In JavaScript, the keyword void is used as a unary operator that appears before its single operand, which can be of any type. This operator is used to specify an expression that will be evaluated but will not yield a value.