Created
December 10, 2023 20:33
-
-
Save alexandrespmg/c971ec1960884be543e675beac5b7b26 to your computer and use it in GitHub Desktop.
farm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var spearCount = document.getElementById('spear').innerText; | |
var swordCount = document.getElementById('sword').innerText; | |
var spyCount = document.getElementById('spy').innerText; | |
var lightCount = document.getElementById('light').innerText; | |
var message = 'Spear: ' + spearCount + | |
'\nSword: ' + swordCount + | |
'\nSpy: ' + spyCount + | |
'\nLight: ' + lightCount; | |
alert(message); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment