summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-rw-r--r--app.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/app.js b/app.js
index 158168b..3007f69 100644
--- a/app.js
+++ b/app.js
@@ -1,5 +1,13 @@
console.log('Hello from app.js');
+fetch('svg/x.svg')
+ .then(response => response.text())
+ .then(fileContents => {
+ console.log(fileContents);
+ })
+ .catch(error => console.error('Error reading the file:', error));
+
+
const turns = {true: 'X', false: 'O'};
const getXBoard = function() {