CS202 Assignment 2 Solution 2023 PDF Download

CS202 Assignment 2 Solution 2023 PDF Download

CS202 Assignment 2 Solution 2023 of VU is available in pdf Download. We share the 100% solution for CS202 GDB Solution Fall 2023 of Virtual University(VU), which is the 2nd GDB of the course. For the most up-to-date GDB assignment solutions, make sure to keep checking back to PreparationPoint.

PDF Download CS202 Assignment 2 Solution 2023

We know that Virtual University can be a challenging place, especially for new students. That is why our Virtual University Assignment Solution is here to help. Contact us today through the comment section for all your Virtual University Assignment Solution needs.

<!DOCTYPE html>
<html>
<head>
  <title>CS202 Assignment 2 Solution 2023</title>
</head>
<body>
<button id="student-button">Show Student Info</button>

<div id="Basic-Info" style="display: none;">
  <p>Name: John Doe</p>
  <p>Age: 25</p>
  <p>Course: Computer Science</p>
</div>
<script>
  var studentButton = document.getElementById("student-button");
  var studentInfo = document.getElementById("student-info");

  studentButton.addEventListener("click", function() {
    studentInfo.style.display = "block";
  });
</script>
</body>
</html>
The above code creates a button with the id "student-button" and a div containing student information with the id "student-info". The div is initially hidden using the "display: none" CSS property.
When the button is clicked, the JavaScript code is executed, which listens for the "click" event on the button and sets the display property of the student info div to "block", making it visible.
2.2/5 - (28 votes)

Leave a Comment

Your email address will not be published. Required fields are marked *