between which tag geolocation comes. its not working for me the command just displayed on the screen as "navigator.geolocation.getCurrentPosition();
Last time I tried in the SL app it didn't work (i suppose it due to do with missing app permissions). In the browser there should be no problem: just login at https://sololearn.com from firefox/chrome and run the code. You'll probably get a prompt from the browser requesting you to grant permission to access your location. Same thing happens with camera input and audio input.