Below is a sample JavaScript function wrapped in pre tags. The syntax highlighter script that is included in the head section uses the pre tags to find and highlight the JavaScript.

function fuzzyPlural(single) {
  var result = single.replace(/o/g, 'e');  
  if( single === 'kangaroo'){
    result += 'se';
  }
  return result; 
}
 
var words = ["foot", "goose", "moose", "kangaroo"];
console.log(words.map(fuzzyPlural));
 
// ["feet", "geese", "meese", "kangareese"]