title: How do i check javascript variable on Rails?
body: <pre><code>var map = new naver.maps.Map('map', mapOptions);
  
  var latlng = map.getCenter();
  console.log("latlng variable is ", latlng);
  </code></pre>
  
  <p>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. </p>
  
  <p>I want to know the value inside <code>latlng</code> 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. </p>
  
  <p>How can I do this? I can really use some help. </p>