<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>
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.