JavaScript: Concatenate two strings except their first character
JavaScript Basic: Exercise-61 with Solution
Concatenate Two Strings Without First Character
Write a JavaScript program to concatenate two strings except for their first character.
This JavaScript program concatenates two input strings by omitting their first character from each string before concatenation. The length of both input strings should be at least 2.
Visual Presentation:

Sample Solution:
JavaScript Code:
Output:
HPS AB
Live Demo:
Flowchart:

ES6 Version:
For more Practice: Solve these Related Problems:
- Write a JavaScript program that concatenates two input strings after removing their first character, ensuring both strings have at least one character.
- Write a JavaScript function that validates the length of two strings and returns their concatenation without the initial characters.
- Write a JavaScript program that safely concatenates two strings, removing the first character of each and handling empty string cases.
Improve this sample solution and post your code through Disqus.
Previous: JavaScript program to create a new string without the first and last character of a given string.
Next: JavaScript program to move last three character to the start of a given string.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics