How to Remove First 2 Words From String Using JavaScript?

Remove First Two Words From String Using JavaScript or Jquery,Delete starting 2 Words Using Javascript

Hello friends, today I will tell you through this tutorial that you can remove 2 words from start of the value of any string through javascript.

Demo 

<script>
var original = "My Name is Jyoti Chaurasiya.";
var result = original.substr(original.indexOf(" ") + 1);
var resultor = result.substr(result.indexOf(" ") + 1);
alert(resultor);
</script>

First of all I would like to tell you that you have been explained below by example that you can easily remove 2 value from the start of any string through javascript.

Now let’s try to understand. First of all, you should create a file of html and copy the code written above it and paste it in your file and run the file on your browser and you will get the output.

You can see the output by clicking on the given demo link.