@victorsonet
Posted
Hey, The reason you want to use JS instead of HTML is because with JS you can make certain user limitations, for example not letting submit the page when certain inputs are empty or only allowing passwords that have one uppercase letter and 8 letters long etc. Normally without JS (which works on the client side) validation the user data goes instantly to the server and that will do the validation which takes longer time then doing it on the client side, where you instantly get the feedback and you don't make extra work for the server either. I hope this answered your question!
Marked as helpful
@scoltelli27
Posted
@victorsonet Thank you so much for the answer! I get it now!