I have tried the JSON.stringify method and the Console.Log method and neither have worked for me. I am hosting a static S3 website with APIGateway, Lambda, and DynamoDB.
const countEl = document.getElementById('count');
updateVisitCount();
//Testinglllll
function updateVisitCount() {
fetch('https://8zsb3och04.execute-api.us-east-
2.amazonaws.com/Prod')
.then(response => {
return response.json()
})
.then(data => {
let countEl = data;
console.log(data)
document.getElementById('count').innerHTML = data;
})
}[Dynamo Table][1]