Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

verify if user input is equal to javascript

const userAge = parseInt(prompt("Age:"))
if(userAge >= 18) {
 alert("You can enter") 
} else {
 alert("You cant enter")
}
 
PREVIOUS NEXT
Tagged: #verify #user #input #equal #javascript
ADD COMMENT
Topic
Name
6+1 =