I am a beginner in JavaScript and I am facing a problem while using the onclick event
Can you please help me?
movie1.innerHTML = `
<img src="${IMG_URL + poster_path}" alt="Poster">
<p class="title">${title}</p>
<span>Rating : ${vote_average}</span>
<div class="summary">
<p>${overview}</p>
</div>
<button class="watchbtn" onclick="passname(${title})" >Watch</button>
</div>
`;
In the Above code I get an error which shows “Uncaught SyntaxError: missing ) after argument list”