SHARE
TWEET

Untitled

a guest Nov 20th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     function validateFeederSerialNumber(serialNumber) {
  2.         var serialNumberPart = serialNumber.split(' ');
  3.         var feederType = serialNumberPart[0];
  4.         var feederSerialNumber = serialNumberPart[1];
  5.  
  6.         if (feederType.length === 5 && feederSerialNumber.length === 6) {
  7.             console.log('Correct Serial Number');
  8.         } else {
  9.             console.log('Wrong Serial Number. Feeder type should be 5 characters and Feeder serial number should be 6 characters.');
  10.         }
  11.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top