Sunday, 23 April 2017

Purpose of assert in NodeJS

I'm new to nodejs, I follow all the steps in the documentation. First I study and test the assert function of node, I just want to know what is the purpose of using assert? if no error there's no output, but if you have an error, there's an output saying AssertError etc.

I want to know, when and what is the purpose of using assert?



via John Rey M. Baylen

No comments:

Post a Comment