Hello everyone! I've been struggling with a problem on the RPS project for quite some time now. The issue arises when I try to display a message for a tie in the game, but I can't seem to find a solution to make it disappear when the round is not a tie.
Everything runs smoothly except for the last two else if conditions. In one of them, I attempted to show the tie message when the player's choice matches the CPU's, and in the other condition, I thought I could use an if statement to replace the previous tie message with an empty string. I tried using code like "if (playerSelection !== computerPlay) then the tie message changes to an empty string", but unfortunately, it's not working as expected.
I'll include the code below:
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rock Paper Scissors</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="queries.css" />
</head>
<!-- Body content -->
>