Here is some example code.

A great example to introduce debugging in javascript: reading a value from an input, and treating it as a number, but in reality it's a string and does unexpected stuff like two+2="22".