JavaScript string search() | Method
The javaScript string search() method searches for a specific string or regular expression. This method accepts a regular expression and returns the index of the… Read More »JavaScript string search() | Method
The javaScript string search() method searches for a specific string or regular expression. This method accepts a regular expression and returns the index of the… Read More »JavaScript string search() | Method
JavaScript valueOf() String method is used to get the primitive value of the string object. You don’t need to use it in your code because… Read More »JavaScript valueOf() | String method
As you know a JavaScript string is an object that represents a sequence of characters. JavaScript strings have methods and properties because JavaScript treats primitive… Read More »JavaScript string methods | Code
JavaScript Document open() method opens a document for writing. The difference between open() and write() is that open() clears the document so you can write… Read More »JavaScript document open | Method
Use the JavaScript replaceAll() method to replace all matches of a pattern in a given string. This method returns a new string with all matches… Read More »JavaScript replaceAll() | String method
JavaScript replaces() method is used to replace the matched substring with a new substring. This returns a new string with the specified string/regex replaced. This… Read More »JavaScript replace() method | Examples
Use the JavaScript toLowerCase() String method to convert a given string into a lowercase letter string. This method does not change the original string. JavaScript… Read More »JavaScript toLowerCase() | String method
JavaScript confirm() Method instructs the browser to display a dialog and to wait until the user either confirms or cancels the dialog. You can set… Read More »JavaScript confirm() Method | Basics
JavaScript window object methods perform specific tasks like opening, maximizing, minimizing the window, etc. List of the most commonly used window object methods: Method Description… Read More »Methods of window object in JavaScript
JavaScript String concat() Method used to join two or more strings. It does not change the given strings and returns a new string. JavaScript String… Read More »JavaScript String concat() | Method