lalitkumarthakur / javascripthelpbylalit

The Complete JavaScript Course 2023: From Zero to Expert! from udemy. Learning javascript using this course.
https://lalitkumarthakur.github.io/javascripthelpbylalit/
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Error text does not update. #64

Open lalitkumarthakur opened 12 months ago

lalitkumarthakur commented 12 months ago

Error text does not update itself when user either gibes Black space or more than 1 character after providing 1st input.

Example -

1st time Input - Input -> Blank space -> submit. "You cannot enter a blank space. Please enter a special character/ number/ alphabet."

2nd time input - Input -> 12/13/qw13-> submit. "You cannot enter more than 1 character. Please enter a single character! "

You need to refresh the page to get the correct error message which should not happen.

Please help me to fix this or fix this directly.

lalitkumarthakur commented 12 months ago

This happens in Ch4 -. IF else -> Program4