So, we give the number of the first letter of a particular word or phrase in a given string for the sub string.
But what if the my string has got so many words and i want something right at the end?
I can think of one possible solution.
var z="my name is so and so";
var x="My name is so".length;
var y="My name is so and so".length;
Also, we can do it using prompt.
But is there any other simple solution to find it?