Skip to content

Commit

Permalink
Update answer and remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
maxiwee69 committed Jan 31, 2024
1 parent 2051277 commit af05505
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion hihi/answer.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
Yes
7 changes: 1 addition & 6 deletions hihi/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit af05505

Please sign in to comment.