Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

novalue

/* Simple Hello World in Node.js */
a = {'exists' : 5}
console.log(a['exists'])
console.log(a['dne'])

Execute Node.js Online

/* Simple Hello World in Node.js */
// File Header Record
console.log("Hello World");
var fileheaderrecordtype = "1";
var priorityxode = "01";
 var immediatedestination = "071000288";
 var immediateorigin = "1234567890";
  console.log("iso", new Date().toISOString().slice(2,10));

Execute Node.js Online

/* Simple Hello World in Node.js */
console.log("Hello World");
    var routingnumber = [];
    var creditamount = [];
    var reserved = "";
    var txt = ",";
    var debitamount = "";
     var reserved1 = "";
     var originatingDFI = "07100028";
     var batchnumber = "0000001";
     var finalcompanycontrolrecord = [];
var eack = [ '632456789011234567890,,,,,,,,0000020000,,,,,,,,,,,,,,,vijayasri,,,,,,,,,,,,,,,0071000280000001',
  '6224567892342234567890,,,,,,,0000005000,,,,,,,,,,,,,,,varun,,,,,,,,,,,,,,,,,,,0071000280000002',
  '622123456789765432190876,,,,,0000000460,,,,,,,,,,,,,,,Lahari,,,,,,,,,,,,,,,,,,0071000280000003',
  '632987654321876543210,,,,,,,,0000000670,,,,,,,,,,,,,,,divya,,,,,,,,,,,,,,,,,,,0071000280000004' ];
var recordtype = "8";
var serviceclasscode = "200";
var entrycount = eack.length;


//console.log("addendacount",addendacount);

var entrylen = 6 - entrycount.toString().length;

if(entrylen!=0){
    for(i=0;i<entrylen;i++){
         entrycount = '0'+entrycount;
    }
   
   
}
console.log("entrycount",entrycount);
for(i=0;i<eack.length;i++){

     routingnumber.push(parseInt( eack[i].substring(3,11)));
     creditamount.push(parseInt( eack[i].substring(29,39)))
   
}
console.log("creditamount",creditamount);
 console.log(routingnumber);
 var entryhash;

sum = 0;
for(j =0 ;j<routingnumber.length;j++){
   sum = sum+ routingnumber[j];
   
}
console.log("sum",sum);
console.log("sum.toString().length",sum.toString().length)

 var c = 10 - sum.toString().length ;
 
if(c!=0){
    for(i=0;i<c;i++){
         sum = '0'+sum;
    }
   
   
}
entryhash = sum;
 console.log("final",sum);
 
 
  for(var k = 0;k<12;k++){
         debitamount +='0';
     }
     console.log("debitamount",debitamount,debitamount.length);
     
     
 camount = 0;
 for(i = 0;i<creditamount.length;i++){
     camount = camount + creditamount[i];
 }
 console.log("camount",camount);
 var amountwithzeros = 12 - camount.toString().length ;
 if(amountwithzeros!=0){
    for(i=0;i<amountwithzeros;i++){
         camount = '0'+camount;
    }
   
   
}
console.log("final amount with zeros",camount,camount.length);
console.log("entryhash", entryhash);
var companyidno = '1234567890';
     
     for(var k = 0;k<19;k++){
         reserved +=txt;
     }
     console.log("reserved",reserved,reserved.length);
     
      for(var k = 0;k<6;k++){
         reserved1 +=txt;
     }
     console.log("reserved1",reserved1,reserved1.length);
     
     
      finalcompanycontrolrecord.push(recordtype + serviceclasscode + entrycount + entryhash + debitamount + camount +companyidno +reserved + reserved1 +originatingDFI + batchnumber) ;
     
     console.log("finalcompanycontrolrecord",finalcompanycontrolrecord,finalcompanycontrolrecord.length);

Execute Node.js Online

/* Simple Hello World in Node.js */
console.log("Hello World");
/* Simple Hello World in Node.js */
console.log("Hello World");
var recordtype = ['6','6','6'];

var TransactionCode = ['22','22','32'];

var routingnumber = ['123456789','234567890','098765432'];
var digit8routingnumber = [];

var checkdigit = [];

var accountnumber = ['123456789','2345678910','35476138741234567'];

var amount = ['200','500000','1000'];

var individualid = [];

var name = ['Divya Galla','Lahari','Vijayasri Vuddanti'];

var descritarydata = [];

var addenda = ['0','1','0'];

var tracenumber = [];
var finalaccarray = [];
var txt = ",";
 var a = [];
 var lastdigit;

// var individualid = new Array(routingnumber.length);
// console.log("individualid",individualid.length,individualid) // 5

var actualaccountnolength = 17;
// dis for routingnumbers
for(i = 0;i< routingnumber.length;i++){
    var r1 = routingnumber[i];
    console.log("r1 is ",r1);
    digit8routingnumber.push(r1.substring(0,8));
    console.log("digit8routingnumber",digit8routingnumber);
    
    
    var eachcheckdigit = r1.toString()[8];
    
    
    checkdigit.push(eachcheckdigit);
    console.log("eachdigit",eachcheckdigit);
    
    
}
console.log("digit8routingnumberfinal",digit8routingnumber);
console.log("eachcheckdigit",checkdigit);

// dis for account number
console.log("accountnumber.length",accountnumber.length);
for( var j=0;j< accountnumber.length;j++){
    
    var a1 = accountnumber[j];
    var index = accountnumber.indexOf(a1);
    console.log("aaaqa",index);
    
    console.log("a1 is a1", j , a1);
    if ( a1.length == actualaccountnolength){
         console.log("aequal",a1);
         
         var index = accountnumber.indexOf(a1);

                  if (index !== -1) {
                 accountnumber[index] = a1;
                }
         
         
     }
     else{
         
         c2 = actualaccountnolength - a1.length;
         console.log("c2",c2);
         console.log("a1.len",a1.length);
         for (var i = 0; i < c2; i++) {
         a1+=txt;
         //console.log( i , "accountnumber1111",a1);
       
        
        
         
         
     }
       console.log("inn",index);
       if (index !== -1) {
                 accountnumber[index] = a1;
                }
       //finalaccarray.push(a1);
      console.log("onlya1",a1);
       
    }
   
    // console.log("j is ", j);
    // console.log("is is",i);
   
}
console.log("fi",finalaccarray);
  console.log( "accountnoh",accountnumber.length,typeof(accountnumber),accountnumber);
  
  for( var j=0;j< amount.length;j++){
    
    var a1 = amount[j];
    var index = amount.indexOf(a1);
    console.log("aaaqa",index);
    
    console.log("a1 is a1", j , a1);
    if ( a1.length == 10){
         console.log("aequal",a1);
         
         var index = amount.indexOf(a1);

                  if (index !== -1) {
                 amount[index] = a1;
                }
         
         
     }
     else{
         
         c2 = 10 - a1.length;
         console.log("c2",c2);
         console.log("a1.len",a1.length);
         for (var i = 0; i < c2; i++) {
         a1 = '0'+a1;
         //console.log( i , "accountnumber1111",a1);
       
        
        
         
         
     }
       console.log("inn",index);
       if (index !== -1) {
                 amount[index] = a1;
                }
       //finalaccarray.push(a1);
      console.log("onlya1",a1);
       
    }
   
   
}
console.log( "ammountfinally",amount.length,typeof(amount),amount);

var record1 = [];
for(i = 0 ;i <recordtype.length;i++){
    record1  = recordtype[i];
    
}

 console.log("individualid.length",individualid.length);
for( var j=0;j< routingnumber.length;j++){
           var a1 =""
    
    
         for (var i = 0; i < 15; i++) {
        
     
             a1 = a1 + txt;
         
     }
     individualid.push(a1);
     console.log("individualid[i]",individualid,individualid.length);
    
   
}
console.log("individualidarray",individualid)


//
console.log("name length",name.length);
for( var j=0;j< name.length;j++){
    
    var a1 = name[j];
    console.log("each name length",a1,a1.length);
    var index = name.indexOf(a1);
    console.log("aaaqa",index);
    
    console.log("a1 is a1", j , a1);
    if ( a1.length == 22){
         console.log("aequal",a1);
         
         var index = name.indexOf(a1);

                  if (index !== -1) {
                 name[index] = a1;
                }
         
         
     }
     else{
         
         c2 = 22 - a1.length;
         console.log("c2",c2);
         console.log("a1.len",a1.length);
         for (var i = 0; i < c2; i++) {
         a1+=txt;
         //console.log( i , "accountnumber1111",a1);
       
        
        
         
         
     }
      console.log("inn",index);
      if (index !== -1) {
                 name[index] = a1;
                }
      //finalaccarray.push(a1);
      console.log("onlya1",a1);
       
    }
   
    // console.log("j is ", j);
    // console.log("is is",i);
   
}
  console.log( "name",name.length,typeof(name),name);
  
 //
 
  console.log("discritionartydata.length",descritarydata.length);
for( var j=0;j< routingnumber.length;j++){
           var a1 =""
    
    
         for (var i = 0; i < 2; i++) {
        
     
             a1 = a1 + txt;
         
     }
     descritarydata.push(a1);
     console.log("discritionartydata[i]",descritarydata,descritarydata.length);
    
   
}
console.log("descritarydata",descritarydata)

//

console.log("tracenumber.length",tracenumber.length);
for( var j=0;j< routingnumber.length;j++){
    
   tracenumber.push('07100028');
   }
   
   // sequential
   
  for(i = 0 ;i<tracenumber.length;i++){
     var t1 = tracenumber[i];
      console.log("t1 is",t1);
   for(k=1;k<=7;k++){
       
       t1+= '0';
       
       
      
       
       
      
   }
  }
//   for(l= 0; i )
//   console.log("lastdigit",t1);
   
//   }
   
   
   
   
console.log("tracenumber",tracenumber)
  

rdstw5t3w45g45

https://megabox-zh-hk.over-blog.com/2019/02/megabox-2019.html
https://megabox-zh-hk.over-blog.com/2019/02/megabox-alita-battle-angel.html
https://megabox-zh-hk.over-blog.com/2019/02/alita-battle-angel-megabox.html
https://megabox-zh-hk.over-blog.com/2019/02/hd-alita-battle-angel.html
https://megabox-zh-hk.over-blog.com/2019/02/alita-battle-angel.html
https://megabox-zh-hk.over-blog.com/2019/02/2019-tv-movie.html
https://megabox-zh-hk.over-blog.com/2019/02/avi.html
https://megabox-zh-hk.over-blog.com/2019/02/alita-battle-angel-2019-megabox-movie.html
https://megabox-zh-hk.over-blog.com/2019/02/megabox-2019-alita-battle-angel.html
https://megabox-zh-hk.over-blog.com/2019/02/alita-battle-angel-2019.html
https://megabox-zh-hk.over-blog.com/2019/02/alita-battle-angel-2019-hd1080p.html
https://megabox-zh-hk.over-blog.com/2019/02/megabox-32019.html
https://megabox-zh-hk.over-blog.com/2019/02/megabox-2019-0.html
https://megabox-zh-hk.over-blog.com/2019/02/megabox-2019-2.html
https://megabox-zh-hk.over-blog.com/2019/02/megabox-2019-03.html
https://megabox-zh-hk.over-blog.com/2019/02/megabox-2019-4.html
https://megabox-zh-hk.over-blog.com/2019/02/megabox-lego-22019.html
https://megabox-zh-hk.over-blog.com/2019/02/megabox-2018.html
https://megabox-zh-hk.over-blog.com/2019/02/megabox-2019-5.html
https://megabox-zh-hk.over-blog.com/2019/02/megabox-2019-6.html
https://megabox-zh-hk.over-blog.com/2019/02/megabox-2019-48.html
https://www.bagevent.com/event/2294272
https://www.bagevent.com/event/2292588
https://www.bagevent.com/event/2292621
https://www.bagevent.com/event/2292625
https://www.bagevent.com/event/2292864
https://www.bagevent.com/event/2292933
https://www.bagevent.com/event/2292951
https://www.bagevent.com/event/2292986
https://www.bagevent.com/event/2293061
https://www.bagevent.com/event/2293154
https://www.bagevent.com/event/2293176
https://www.bagevent.com/event/2293270
https://www.bagevent.com/event/2293282
https://www.bagevent.com/event/2293372
https://www.bagevent.com/event/2293460
https://www.bagevent.com/event/2293553
https://www.bagevent.com/event/2293595
https://www.bagevent.com/event/2293721
https://www.bagevent.com/event/2293771
https://www.bagevent.com/event/2293865
https://www.bagevent.com/event/2293903
https://www.bagevent.com/event/2293992
https://www.bagevent.com/event/2294025
https://www.bagevent.com/event/2294061
https://www.bagevent.com/event/2294154
https://www.bagevent.com/event/2294208
https://www.bagevent.com/event/2294220

NODE

// Import events module
var events = require('events');

// Create an eventEmitter object
var eventEmitter = new events.EventEmitter();

// Create an event handler as follows
var connectHandler = function connected() {
   console.log('connection succesful.');
  
   // Fire the data_received event 
   eventEmitter.emit('data_received');
}

// Bind the connection event with the handler
eventEmitter.on('connection', connectHandler);
 
// Bind the data_received event with the anonymous function
eventEmitter.on('data_received', function(){
   console.log('data received succesfully.');
});

// Fire the connection event 
eventEmitter.emit('connection');

console.log("Program Ended.");

abcd

/* Hello, World! program in node.js */
console.log("Hello, World!")

Node.js Hello World Example

/* Hello, World! program in node.js */
console.log("Hello, World!")

Execute Node.js Online

var dateObj = new Date();
var month = dateObj.getUTCMonth() + 1; //months from 1-12
var day = dateObj.getUTCDate();
var year = dateObj.getUTCFullYear();

newdate = day + "-" + month + "-" + year;
console.log("newdate",newdate);

console.log(dateObj.toDateString());
var a = dateObj.toDateString();

console.log(a);

var months = dateObj.getMonth().toString;
console.log("er",months)

1st Timer Node

/* Simple Hello World in Node.js */
var teacherName = "Haha"; //This defines a new variable named teacherName with the value "Daniel"
console.log(teacherName); //Logs my name to the console
var languageLearning; //This creates a variable with no value. We can add a value later.
console.log(languageLearning);
languageLearning = "NodeJS"; //assigns a value to the variable
console.log(languageLearning);
const meaningOfLife = 37; //creates a constant for the meaning of life
console.log(meaningOfLife);
/*
  This is a multiline comment.
  Anyways, we write variables in camelCase. That means the first letter is lowercase and each word starts with a capital letter.
  Variable names may not have spaces or start with numbers. They can have numbers elsewhere though.
  After hitting run, uncomment the next line and see what happens!
*/
//meaningOfLife = 5; //changes meaningOfLife

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.