You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
380
380
381
381
**Example:**
382
382
@@ -406,13 +406,15 @@ Node.js includes an additional data type called Buffer ( not available in browse
406
406
* Buffer Data Type
407
407
*/
408
408
let b =newBuffer(10000);
409
-
let str ="";
409
+
let str ="----------";
410
410
411
411
b.write(str);
412
-
console.log( str.length ); //25
412
+
console.log( str.length ); //10
413
413
console.log( b.length ); // 10000
414
414
```
415
415
416
+
*Note: Buffer() is deprecated due to security and usability issues.*
417
+
416
418
<divalign="right">
417
419
<b><a href="#table-of-contents">↥ back to top</a></b>
0 commit comments