diff options
author | TinWoodman92 <chrhodgden@gmail.com> | 2024-01-15 20:31:20 -0600 |
---|---|---|
committer | TinWoodman92 <chrhodgden@gmail.com> | 2024-01-15 20:31:20 -0600 |
commit | 067b447b98a01fbfd4338c29ae5affc7edf5f9f7 (patch) | |
tree | 0d16a8e9c75e8f4289e83bca837503ed2036e84c /app.js | |
parent | 4f41c8fce448933e88965833feff0fb3faab79b5 (diff) |
adding X & O vectorsdev
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() { |