JavaScript Validation: Length Check Tutorial (Part 1)

Veröffentlicht am: 05 März 2023
auf dem Kanal: Max O'Didily
393
6

JavaScript Validation: Length Check Tutorial (Part 1)

Greetings, today we are here with a JavaScript tutorial. We shall be doing a length check validation on a string. This can be useful if you want to control the size of the user's input.

This will be a 4 part series. In this video we are covering how to check if the user has inputted a string of a specific length.

If we set the desired length to be 5, if the user inputs a word that is 4 characters long, it will be invalid. If the user inputs a word that is 5 characters long, it will be a valid input. This could be useful for when asking the user for their postcode, phone number, pin, date of birth or credit card number as these can be fixed lengths.

Thanks for watching this JavaScript length check tutorial.

This tutorial is aimed at beginners.

Wait for user input in JavaScript:    • How to Wait for User Input in Javascript -...  

Source code for waiting for user input in JavaScript: https://pastebin.com/MuMPBUp0

Subscribe to keep notified when I upload?:
https://tinyurl.com/SubMaxODidily

JavaScript Validation: Length Check Tutorial (Part 1)


Auf dieser Seite können Sie das Online-Video JavaScript Validation: Length Check Tutorial (Part 1) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Max O'Didily 05 März 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 393 Mal angesehen und es wurde von 6 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!