Most common javascript string function

Software engineer | Web developer | Tech Enthusiast
Search for a command to run...

Software engineer | Web developer | Tech Enthusiast
No comments yet. Be the first to comment.
hi all in this series I'll discuss javascript string, array, math, and other inbuilt functions
abs Math.abs function returns the absolute value of a number ceil Math.ceil function rounds a number up to the next largest integer floor Math.floor function rounds a number down to its nearest integer round Math.round function rounds a number to ...
JavaScript developers have long relied on Promises to manage asynchronous code smoothlyβbut what if you need to catch errors and results from both synchronous and asynchronous functions consistently? Enter Promise.try(), a brand-new addition official...

As you become more experienced with JavaScript, you may encounter some advanced topics that can help you create even more powerful and efficient code. Here are a few Javascript Topics that you must know Callback Functions Callback functions are fun...

let's first understand what continuous element in the above example, you have seen there is a repeating now I want to remove all continuous values only (not duplication) and keep 1st element of each repeating value let's see how can we achieve that ...

pow ** exponentiation operator raising the first operand to the power of the second more details explanation click here floor ~~ double bitwise not operator rounding a number towards zero more details explanation click here Wrapping up! Share thi...
charAt method returns the character at the specified index in a string

charCodeAt method returns Unicode of the character at the specified index in a string

substr extracts the characters from a string, beginning at a specified start position, and through the specified number of character

substring Extracts the characters from a string, between two specified indices

toLowerCase converts a string to lowercase letters

toUpperCase converts a string to uppercase letters

trim remove white space from start and end of string

repeat returns a new string with a specified number of copies of an existing string

startsWith method is used to check whether a string starts with a specific word or not. it returns true or false

endsWith is used to check whether a string ends with a specific word or not. it returns true or false

Share this blog with your friends π©πΌβπ€βπ§πΌ and developers π¨βπ» you know and let them know about these cool string functions
Your feedback and comments are very important to me. π