Skip to content

Category Archives: Node.js

The console.log() function from console class of Node.js is used to display the messages on the console. It prints to stdout with newline. Syntax: console.log(… Read More
join() is an array function from Node.js that is used to return a string from the array. Syntax: array_name.join(parameter) Parameter: This function takes a single… Read More
The substr() function is a string function of Node.js which is used to extract sub-string from the given string. Syntax: string.substr(index, length) Parameters: This function… Read More
The split() function is a string function of Node.js which is used to split string into sub-strings. This function returns the output in array form.Syntax:  … Read More
shift() is an array function from Node.js that is used to delete element from the front of an array. Syntax: array_name.shift() Parameter: This function does… Read More
push() is an array function from Node.js that is used to add element to the end of an array. Syntax: array_name.push(element) Parameter: This function takes… Read More
The trim() function is a string function of Node.js which is used to remove white spaces from the string. Syntax: string.trim() Parameter: This function does… Read More
The slice() function is a string function of Node.js which is used to extract sub-string from a string. Syntax: string.slice( start, end ) Parameters: This… Read More
The console.warn() function from console class of Node.js is used to display the warning messages on the console. It prints to stderr with newline. Note:… Read More
The console.error() function from console class of Node.js is used to display an error messages on the console. It prints to stderr with newline.Syntax:  console.error([data][,… Read More
sort() is an array function from Node.js that is used to sort a given array. Syntax: array_name.sort() Parameter: This function does not takes any parameter.… Read More
In Node for password hashing and verification we can use a npm library known as bcryptjs npm-bcryptjs. Installation of bcryptjs: Node.js contains an inbuilt crypto… Read More
What is Routing? Routing defines the way in which the client requests are handled by the application endpoints. Implementation of routing in Node.js: There are… Read More
While building a big project working in a team, continuous changes being in code base are going to achieve optimum results. So if someone writes… Read More
The urlObject.slashes property is used when one wants to check whether there is a need of ASCII valued forward-slash character (/) after the colon (:)… Read More

Start Your Coding Journey Now!