Here is such a small script that I get data from html and I want to transfer it to the map then, but the Object object is displayed in alert() , and not my value. How do you guys fix it? Here is my code
var map; var x= -34.397; var his=$('td').eq(19).each(function(){ console.log($(this).html()); }); function initMap() { map = new google.maps.Map(document.getElementById('map'), { center: {lat:x, lng: 150.644}, zoom: 8 }); }; alert(his); initMap();