Page 401 - Web_Application_v2.0_C12_Fb
P. 401
else {
lost++;
resultText = `You Lose! ${computerChoice.charAt(0).toUpperCase() + computerChoice.
slice(1)} beats ${userChoice}!`;
}
document.getElementById(“won”).textContent = won;
document.getElementById(“lost”).textContent = lost;
document.getElementById(“draw”).textContent = draw;
document.getElementById(“result”).innerHTML = `<p>${resultText}</p>
<div>
<img src=”${userChoice.charAt(0).toUpperCase() + userChoice.slice(1)}.png”
STYLE=”WIDTH:200PX”>
<img src=”${computerChoice.charAt(0).toUpperCase() + computerChoice.slice(1)}.
png” STYLE=”WIDTH:200PX”>
</div>
`;
}
Note: The code of the project can be downloaded through the following link:
https://orangewebsupport.co.in/Web_Applications/Project_Work/Rock_Paper_Scissors.zip
or scan the QR code.
PROJECT 2
Create a presentation on the Internet of Things (IoT) that includes the following topics:
• What is IoT?
• Advantages of IoT
• Disadvantages of IoT
• Examples of IoT Devices
• Industrial Internet of Things (IIoT)
You can also see the entire presentation by clicking on the following link:
https://surl.li/jfdsnc or scan the QR code.
Slide 1
Projects 399

