var map = new naver.maps.Map('map', mapOptions);
var latlng = map.getCenter();
console.log("latlng variable is ", latlng);
I'm using an external API (NAVER map, which is similar to Google map I believe) which runs on Javascript and I'm looking for a way to check a Javascript variable, to debug.
I want to know the value inside latlng but I can't see any log on my terminal.
I googled and read that passing Javascript variable to ruby controller cannot be done directly. However, I'm not trying to pass the variable - I just want to see what's in it.
How can I do this? I can really use some help.
console.logprints the out to the console.console.logwill print in the browser log, whereasRails.logwill print in the server log.