HTML and CSS Reference
When do you deine an object deiniion and when do you declare an object instance directly?
When something is going to be reused many imes, declaring the deiniion allows us to
create many instances using the new operator. Otherwise, if we just need the object once,
an object instance is more than enough.
Creating the opponent's card
It is ime to prepare for the batle. In this task, we will create the opponent's card.
Prepare for lift off
As usual, we will prepare the interface before adding logic to the game using the
1. In the index.html file, append the following opponent's card object after our
<div class="card opponent out">
<div class="front face">
<div class="back face">back</div>
2. The opponent's card is going in from the left side of the game scene. We define the