diff options
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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() { |