CodeSolved

A comprehensive source of programming questions and exercises

Save counter

Practice Normal 215/ Download 322 Views

Create a storage counter using HTML, CSS and JavaScript:

Put the default number of the counter on 0 and create 2 buttons to increase and reduce. Reduce the counter number button and increase the counter number button by clicking the button

The counter number must be saved in the user browserThat if the user refuses to refresh the page or later refer to the page, the default number of the counter is the last numbers to be saved

2 Answers

This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.

Submit answer

Submitting answers is currently unavailable.

Related content

Detection using AI
×
×
Close