After completing the master's degree, there was free time. At work, a new introduction was introduced (a database based on the site), using the database, there was a desire to create your own website, with your own vision of how the site should work, since ordinary specialists do not listen.
var randomLoc = Math.floor(Math.random()*5)
while (isSunk == false) {
guess = prompt("Ready, aim, fire! (enter a number 0-6):");
if (guess <0 || guess > 6) {
alert("Please enter a valid cell number!");
} else {
guesses = guesses + 1;
if (guess == location1 || guess == location2 || guess == location3) {
alert("HIT!");
hits = hits + 1;
if (hits == 3) {
isSunk = true;
alert("You sank my battleship!");
}
} else {
aler("MISS!");
}
}
}
var stats = "You took" + guess + "guesse to sink the battleship," + "which means your shooting accuracy was" + (3 / guesses);
alert(stats);
I have 2 higher educations:
Engineering education
Higher School of Economics (URFU)
HTML CSS Git, GitHub Visual Studio Code
I have Basic (A2)