Table of Contents
Back Button
Back to Chapter
No items found.

Practice Exercise

Question

You have to make a program that gets the key from the HTML Span element and increments the Value of the key.

Hint

Create a span inside a div and store any number to it.

Now create a button with onclick event as a function

Inside the Function get the value of that span Element and increment the number by 1 and print the incremented number in it.

Solution

DOM Exercise
Here is the Key : 1
Ask queries
Contact Us on Whatsapp
Hi, How Can We Help You?