https://developer.mozilla.org/en-US/docs/Web/API/MouseWheelEvent The method "wheelDeltaX" returns an int but the above class is only supported by Chrome/Safari and is deprecated so we must use: https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent Which returns all doubles. The least impact is incurred by simply rounding, which achieves the same behavior as "wheelDeltaX".
- Make consistent use of cascade operator (missing from first two examples). - Change ‘dead-simple server’ qualifier to ‘Hello world server’, which seems more appropriate and slightly less … coarse (note that I have not renamed the file so as to make it easier to view the diff). - Show how to set the content type in the Hello world server (since this is commonly needed). - Remove unused imports. - Misc. cleanup.