MCPcopy Create free account
hub / github.com/appacademy/Module-1-Resources / lastIndex

Function lastIndex

w1/d2/functions.js:45–51  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

43// params are used to represent args
44// string = cats
45function 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected