I`m using Kakao map api and infowindow.
I want to use my custom onClick function in backtick string.
But same error repeated (Unexpected end of input.)
Here`s my code.
kakao.maps.event.addListener(markeenter code herer, 'click', function () {
function aa() {
console.log('12123');
}
infowindow.setContent(
`<div style="padding:5px;font-size:12px;">
<div style="display:flex;">
<div>${place.place_name}</div>
<button onClick=" +
aa +
">추가</button>
</div>
<div>
<div>
${place.road_address_name}
</div>
<div>
${place.address_name}
</div>
<div>
${place.phone}
</div>
</div>
</div>`,
);
infowindow.open(map, marker);
});