showing results for - "inbuilt javascript functions for last word check"
Herman
22 Jun 2016
1function test(words) {
2
3var n = words.indexOf(" ");
4var res = words.substring(n+1,-1);
5return res;
6
7}