0
for example I have the following html code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>jogo da memoria</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="cardboard"></div>
<p> :Score</p>
<p><span id="valor"></span> :Score </p>
<script src="main.js"></script>
</body>
</html>
and the javascript code:
var isMath1;
var jogadorScore;
const cardBoard = document.querySelector("#cardboard");
let cardHTML = "";
const imgs = [
"C.png",
"HTML.jpg",
"Java.jpg",
"JS.jpg",
"php.png",
"Python.jpg"
];
function colocartexto(){
if(isMath1 == true){
while(jogadorScore < images.length){
jogadorScore++;
}
}
}
Estou tentando imprimir o score do jogador quando ele acerta na tentativa.
deste jeito:
tipo --> jogadorScore +:Score