Today I came across some JavaScript code that involves bitwise operations, but my knowledge on the topic is limited. Despite searching online for explanations, I'm still unable to grasp the concept. Can someone provide insight into the following code snippet?
function createExcerpt(string, maxLength) {
// Setting a default maximum length of 110
maxLength = maxLength | 110;
...
While I understand that the pipe character represents a bitwise OR operation, I am struggling to comprehend its specific role in the given context. If providing additional details from the function would be helpful, please don't hesitate to ask.