JavaScript Class Method

Demonstration of how to add a method in a JavaScript Class.

=======================

Enter a number and click OK:

If the number is less than 100 (the input's min attribute), an error message will be displayed.