API geolocation is not working . sir please help

Function name are case sensitive, both are different

abc()
Abc()

In variable declaration function you left semicolon.

in latest JavaScript it is optional now.