Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var header = [ "h1", "h2", "h3", "h4" ];
- var col1 = [ 11, 12, , 14 ];
- var col2 = [ 21, 22, 23, 24 ];
- var col3 = [ 31, , 33, 34 ];
- var col4 = [ 41, 42, 43, 44 ];
- var col5 = [ 51, 52, 53, ];
- function sortWords() {
- columns = ( arguments[0].length );
- for ( y = 0; y < arguments.length; y++ ) {
- process.stdout.write("|");
- for ( x = 0; x < columns; x++ ) {
- process.stdout.write( arguments[y][x] + "|" )
- }
- process.stdout.write( "\n" );
- }
- }
- sortWords( header, col1, col2, col3, col4, col5 );
Add Comment
Please, Sign In to add comment