Skip to content

Commit fd2538a

Browse files
committed
Update README.md
1 parent 37f4c5b commit fd2538a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ person[NAME] // 'Ritika Bhavsar'
376376

377377
## Q. Explain function in Node.js?
378378

379-
Functions are first class citizens in Node's JavaScript, similar to the browser's JavaScript. A function can have attributes and properties also. It can be treated like a class in JavaScript.
379+
Functions are first class citizens in Node\'s JavaScript, similar to the browser\'s JavaScript. A function can have attributes and properties also. It can be treated like a class in JavaScript.
380380

381381
**Example:**
382382

@@ -406,13 +406,15 @@ Node.js includes an additional data type called Buffer ( not available in browse
406406
* Buffer Data Type
407407
*/
408408
let b = new Buffer(10000);
409-
let str = " ";
409+
let str = "----------";
410410

411411
b.write(str);
412-
console.log( str.length ); // 25
412+
console.log( str.length ); // 10
413413
console.log( b.length ); // 10000
414414
```
415415

416+
*Note: Buffer() is deprecated due to security and usability issues.*
417+
416418
<div align="right">
417419
<b><a href="#table-of-contents">↥ back to top</a></b>
418420
</div>

0 commit comments

Comments
 (0)