# Message from JavaScript discussions

October 2017

— Well, heh

Hey guys can anyone help me with this I came across this question want to solve it using Js..

Write a function called “getEncryptedText()” that takes a random string and generates a password out of it and another function called “getDecryptedText()” that takes the output of the “getEncryptedText()” function and returns the original string

— Ehh, what the fuck

—

var getEncryptedText = atob;

var getDecryptedText = btoa;

— Why not do that?

— (in browser)

— I will just ignore the question I don't understand it

— I need help with this guys please:

Write a program which accepts a sequence of comma-separated numbers from console and and generates a (n by m) of n times m = input_number matrix based on the number of input given. Suppose the following input is supplied to the program: 34,67,55,33,12,98 → 6 input. Then, the output should be a 2 by 3 matrix or a 3 by 2 matrix since both multiplication equals to 6 the total number of the inputs: Sample Output [[34, 67], [55,33], [12,98]] or [[34,67,55],[33,12,98]]

— Do ur homework urself

— Its not my home work im trying out some codes on codewars I've not come across this before

— Https://blog.nrwl.io/nrwl-nx-an-open-source-toolkit-for-enterprise-angular-applications-38698e94d65

— So guys I started solving this:

I need help with this guys please:

Write a program which accepts a sequence of comma-separated numbers from console and and generates a (n by m) of n times m = input_number matrix based on the number of input given. Suppose the following input is supplied to the program: 34,67,55,33,12,98 → 6 input. Then, the output should be a 2 by 3 matrix or a 3 by 2 matrix since both multiplication equals to 6 the total number of the inputs: Sample Output [[34, 67], [55,33], [12,98]] or [[34,67,55],[33,12,98]].

Here is my code but doesn't seem to be working to give the required outpu how do I get the required output:

function track(arr){

var k = arr.length;

var i = arr[0].length;

var arr1 = [];

var arr2 = [];

for(var j = 0; j<1; j++){

arr1 = [];

for (var i = 0; i<k; i++){

arr1.push(arr[i][j]);

}

arr2.push(arr1);

}

return arr2;

}

var value = [34,67,55,33,12,98]

var trackArray = track(value)