Skip to content

Commit 9ac54a2

Browse files
Merge pull request learning-zone#17 from omkarsk98/master
Linked event emitter, Added working of assert
2 parents 14de23b + 6b45f96 commit 9ac54a2

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,17 +406,22 @@ myNew(function(err, res){
406406
<b><a href="#">↥ back to top</a></b>
407407
</div>
408408

409-
## Q. ***What is EventEmitter in Node.js?***
410-
411-
*ToDo*
412-
413409
<div align="right">
414410
<b><a href="#">↥ back to top</a></b>
415411
</div>
416412

417413
## Q. ***How assert works in Node.js?***
418414

419-
*ToDo*
415+
The assert module provides a way of testing expressions. If the expression evaluates to 0, or false, an assertion failure is being caused, and the program is terminated.
416+
417+
This module was built to be used internally by Node.js.
418+
419+
```
420+
// Sample usage
421+
422+
const assert = require('assert');
423+
assert(50 > 70, "50 is less than 70.");
424+
```
420425

421426
<div align="right">
422427
<b><a href="#">↥ back to top</a></b>

0 commit comments

Comments
 (0)