progs/catastrophic/catastrophic.js
changeset 753 d94fdbef1a4f
parent 745 7dc3643a0cc5
equal deleted inserted replaced
752:c0bdd4ad69ca 753:d94fdbef1a4f
     5 // regex: (a*)*b
     5 // regex: (a*)*b
     6 // strings: aa...
     6 // strings: aa...
     7 //
     7 //
     8 // call with:
     8 // call with:
     9 //
     9 //
    10 //  $> catastrophic.js 20
    10 //  $> ./catastrophic.js 20
    11 //
    11 //
    12 // call with timing as:
    12 // call with timing as:
    13 //
    13 //
    14 //  $> time catastrophic.js 25
    14 //  $> time ./catastrophic.js 25
    15 
    15 
    16 
    16 
    17 const args = process.argv[2]
    17 const args = process.argv[2]
    18 
    18 
    19 var str = 'a'.repeat(args);
    19 var str = 'a'.repeat(args);