Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
JavaScript
9.9K+ articles
Misc
7.8K+ articles
JavaScript-Questions
2.1K+ articles
JavaScript-Methods
539+ articles
JavaScript-DSA
499+ articles
JavaScript-Program
493+ articles
javascript-array
344+ articles
JavaScript-String-Questions
8+ articles
javascript-string
255+ posts
Recent Articles
Popular Articles
JavaScript - Compare Two Strings
Last Updated: 23 July 2025
These are the followings ways to compare two strings: 1. Using strict equality (===) operatorWe have defined a function that compare two strings using the strict equality ...
read more
JavaScript
Web Technologies
Picked
javascript-string
JavaScript-Program
JavaScript - Add Characters to a String
Last Updated: 23 July 2025
Here are the various approaches to add characters to a string in JavaScriptUsing the + Operator - Most PopularThe + operator is the simplest way to add characters to a str...
read more
JavaScript
Web Technologies
javascript-string
JavaScript-String-Questions
Split a String into an Array of Words in JavaScript
Last Updated: 23 July 2025
JavaScript allows us to split the string into an array of words using string manipulation techniques, such as using regular expressions or the split method. This results i...
read more
JavaScript
Web Technologies
javascript-string
javascript-array
JavaScript-Questions
Perfect Reversible String in JavaScript
Last Updated: 19 July 2024
A string is said to be a perfectly reversible string when the reverse of all the possible substrings of the string is available or present in the string. In this article, ...
read more
JavaScript
Web Technologies
javascript-string
JavaScript-DSA
Add Minimum Characters at Front to Make String Palindrome in JavaScript
Last Updated: 19 July 2024
The minimum characters to add at the front to make the string palindrome means the smallest count of characters required to prepend to the beginning of a given string. It ...
read more
JavaScript
Web Technologies
Geeks Premier League
javascript-string
JavaScript-Questions
JavaScript - Characterrs to Opposite Case in a String
Last Updated: 23 July 2025
Here are the various approaches to convert each character of a string to its opposite case (uppercase to lowercase and vice versa).Using for Loop and if-else Condition - M...
read more
JavaScript
Web Technologies
Picked
Geeks Premier League
javascript-string
Geeks Premier League 2023
JavaScript Program to Reverse Consonants in a Given String Without Affecting the Other Elements
Last Updated: 23 July 2025
In this article, we have given a string and the task is to write a javascript program to reverse only the consonants of a string without affecting the other elements’ posi...
read more
JavaScript
Web Technologies
Geeks Premier League
javascript-string
JavaScript-DSA
JavaScript-Program
Geeks Premier League 2023
JavaScript Program to Extract Strings that contain Digit
Last Updated: 23 July 2025
We are given a Strings List, and the task is to extract those strings that contain at least one digit.Example:Input: test_list = [‘gf4g’, ‘is’, ‘best’, ‘gee1ks’] Output: [...
read more
JavaScript
Web Technologies
Geeks Premier League
javascript-string
JavaScript-DSA
JavaScript-Program
Geeks Premier League 2023
JavaScript Program to Test if Kth Character is Digit in String
Last Updated: 23 July 2025
Testing if the Kth character in a string is a digit in JavaScript involves checking the character at the specified index and determining if it is a numeric digit.Examples:...
read more
JavaScript
Web Technologies
Geeks Premier League
javascript-string
JavaScript-DSA
JavaScript-Program
Geeks Premier League 2023
JavaScript Program to Check Equal Character Frequencies
Last Updated: 23 July 2025
We have given a String to ensure it has equal character frequencies, if not, equate by adding required characters and printing the final string in the console.Example:Inpu...
read more
JavaScript
Web Technologies
Geeks Premier League
javascript-string
JavaScript-DSA
JavaScript-Program
Geeks Premier League 2023
Palindrome Substring Queries in JavaScript
Last Updated: 23 July 2025
Here are the various approaches to check if a substring is a palindrome (a string that reads the same forward and backwards).Using for Loop - Basic Approachfor loop iterat...
read more
JavaScript
Web Technologies
Picked
Geeks Premier League
javascript-string
JavaScript-DSA
Geeks Premier League 2023
JavaScript Program for Printing Shortest Common Supersequence
Last Updated: 19 July 2024
A Shortest Common Supersequence (SCS) is the shortest or smallest string that contains two given strings as a subsequence. It is a minimal combination of characters that i...
read more
JavaScript
Web Technologies
Picked
Geeks Premier League
javascript-string
JavaScript-DSA
JavaScript-Program
Geeks Premier League 2023
JavaScript Program to Mirror Characters of a String
Last Updated: 09 July 2024
Our task is to mirror characters from the N-th position up to the end of a given string, where 'a' will be converted into 'z', 'b' into 'y', and so on. This JavaScript pro...
read more
JavaScript
Web Technologies
Picked
Geeks Premier League
javascript-string
JavaScript-DSA
JavaScript-Program
Geeks Premier League 2023
JavaScript Print shortest Path to Print a String on Screen
Last Updated: 08 November 2023
Given a screen with the English alphabet (A-Z) and a remote control with navigation keys (left, right, up, down), we have to determine the most efficient way to write a st...
read more
JavaScript
Web Technologies
Picked
Geeks Premier League
javascript-string
Geeks Premier League 2023
JavaScript Program to Check if Two Strings are Same or Not
Last Updated: 23 July 2025
In this article, we are going to implement a JavaScript program to check whether two strings are the same or not. If they are the same then we will return true else we wil...
read more
JavaScript
Web Technologies
Picked
Geeks Premier League
javascript-string
JavaScript-DSA
JavaScript-Program
Geeks Premier League 2023
1
2
3
4
...
17
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !