(string)
| 43 | // params are used to represent args |
| 44 | // string = cats |
| 45 | function lastIndex(string){ |
| 46 | // console.log(string);//cats |
| 47 | |
| 48 | // console.log(string[0]);c |
| 49 | // console.log(string,string[string.length - 1]);s |
| 50 | return string[string.length - 1] |
| 51 | } |
| 52 | |
| 53 | |
| 54 | //function call/invocation |
nothing calls this directly
no outgoing calls
no test coverage detected