Tag: javascript
Node.js with Assert module : Straight forward way to write tests for your Node.js applications : assert
The assert module is one of the core libraries in Node.js, meaning it comes bundled with Node.js installation, and thus,…
Node.js Streams: Efficient data handling in real-time applications : Streams
Streams are collections of data – just like arrays or strings. The difference is that streams might not be available…
JavaScript buffer method ,handling binary data efficiently – Buffer
A Buffer is a space in memory, typically temporary, that safely stores data during the transfer between two entities or…
Java Scripts String Methods
trimEnd() : Remove whitespace from the end of a string using JavaScript trimRight() : Remove whitespace from the end of…
Remove whitespace from the end of a string using JavaScript : trimEnd() , trimRight()
JavaScript’s trimEnd() method, alternatively known as trimRight(), is utilized to remove whitespace from the end of a string. This includes…
Extracting parts of a string, by giving beginning at the character at the specified position : substr()
The substr() method extracts parts of a string, beginning at the character at the specified position, and returns the specified…
Extracting characters from a string, between two specified indices using JavaScript : substring()
The substring() method in JavaScript extracts characters from a string, between two specified indices, and returns the new sub string….
Extracting a section of a string and returns it as a new string in JavaScript : slice()
This article provides an in-depth look at the slice() method, complete with executable examples, ensuring you can understand and use…
Foundational tool for debugging, logging, and monitoring in Node.js.
Node.js console.log() Function: Usage, Advantages, Disadvantages, and Real-World Examples The console.log() function is a foundational tool for debugging, logging, and…
Node.js require Function: When, Where, Advantages, and Disadvantages
The require function plays a fundamental role in managing modules, making it essential for Node.js developers to understand when and…