Question: Modifying your prac 6 . html , prac 6 . css , and prac 6 . js files: Create a Vue.js data property called show
Modifying your prachtml praccss and pracjs files:
Create a Vue.js data property called showad whose initial value is set to true.
Set up your page so that:
if showad is true
the div with id ad is present and visible on the page
main element is not present on the page
if showad is false
main element is present and visible on the page
the div with id ad is not present on the page
If you've done this correctly, clicking the close button should hide the ad div and display the main div.
Do not change onclick attribute of the close button.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
