arrow_backBACK TO DRILLS
White Beltstate-basicsPREMIUM
When state is unnecessary
A button click handler asks the user for their name using prompt() and immediately shows an alert greeting them. Which approach is more appropriate for storing the name?