How-to articles, tricks, and solutions about STRINGS

How to Check if Function Exists in JavaScript

In this tutorial, you will read and learn information about the two methods of checking whether a function exists in JavaScript or it has not been defined.

How to Convert a Number to a String in JavaScript

Read the tutorial and find several easy and fast approaches to converting a number to a string in JavaScript. Choose the best method for your workflow.

How to Convert a String into a Date in JavaScript

Read this tutorial and learn the way of converting a string into a Date. Also, read about UTC method, ISO format and much more to get a relevant answer.

How to Convert Object to String

Read this JavaScript tutorial and learn about the fastest methods of converting object into string. Read about JSON.stringify() and toString() methods.

How to Create a New DOM Element from HTML String

Read this JavaScript tutorial and find the method that is used for creating a new DOM element from an HTML string. Get the explanation and see examples.

How to HTML-encode a String

Read this JavaScript tutorial and learn about some useful and fast methods that help you to HTML-encode the string without causing the XSS vulnerability.

How to Remove the First Character of a String with PHP

In this short tutorial, we are going to represent to you the three main PHP functions that are used for removing the first character of a string.

How to Split a String Breaking at a Particular Character in JavaScript

Read this tutorial and find two easy and fast methods of splitting the string breaking at a particular character in JavaScript. Also, find and try examples.

When to Use Double or Single Quotes in JavaScript

Almost all JavaScript developers come across the issue: when to use double or single quotes. Here, we explore possible cases, offering rational solutions.