The following JavaScript code illustrates the difference between the pre and post-increment operators.