vikkktor

barcodeGen

Jun 18th, 2021
717
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function barCodeGen(input) {
  2.     let startNum = input[0];
  3.     let endNum = input[1];
  4.     let endNumString = endNum + "";
  5.  
  6.  
  7.     for (let i = startNum; i <= endNum; i++) {
  8.         let startNumString = i + "";
  9.         for (let x = 0; x < 4; x++) {
  10.             for (let y = 0; y < 4; y++) {
  11.                 console.log(startNumString[x]);
  12.                 console.log(endNumString[y]);
  13.             }
  14.         }
  15.     }
  16. }
  17. //console.log(newBuffer)
  18.  
  19. barCodeGen(["1234",
  20.     "1243"])
RAW Paste Data