assert is not a function, its a keyword. Its a build in feature that must be enabled before it can be used.

To enable this feature you have to add the command "-ea" to the argument list when...