JavaScript : Download the validation Codes

This is the list of the validations discussed in our tutorials

You may download all the validation examples in a single zip file here. Alternatively, you may download those individually from the respective tutorial page.

  • Checking for non-empty
  • Checking for all letters
  • Checking for all numbers
  • Checking for floating numbers
  • Checking for letters and numbers
  • Checking string length
  • Email Validation
  • Date Validation
  • A sample Registration Form
  • Phone No. Validation
  • Credit Card No. Validation
  • Password Validation
  • IP address Validation

Test your Programming skills with w3resource's quiz.

Follow us on Facebook and Twitter for latest update.

JavaScript: Tips of the Day

Returns the minimum of the given dates


const tips_minDate = dates => new Date(Math.min(...dates));
const array = [
 new Date(2016, 4, 13),
  new Date(2018, 3, 12),
  new Date(2016, 0, 10),
  new Date(2017, 0, 9)
console.log(tips_minDate(array)); // 2016-01-08T22:00:00.000Z 




We are closing our Disqus commenting system for some maintenanace issues. You may write to us at reach[at]yahoo[dot]com or visit us at Facebook