diff --git a/hihi/answer.txt b/hihi/answer.txt index dcd7a5d..e69de29 100644 --- a/hihi/answer.txt +++ b/hihi/answer.txt @@ -1 +0,0 @@ -Yes diff --git a/hihi/script.js b/hihi/script.js index 512831b..79960b9 100644 --- a/hihi/script.js +++ b/hihi/script.js @@ -11,13 +11,8 @@ document.addEventListener('DOMContentLoaded', function() { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ answer: 'your answer here' }), + body: JSON.stringify({ answer: answer }), // Use the answer argument }) - .then(response => response.json()) - .then(data => console.log(data)) - .catch((error) => { - console.error('Error:', error); - }); .then(response => { console.log(response); if (!response.ok) {