Message from JavaScript discussions

October 2017

— 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)

Message permanent page

— Backend

— Please can you write solution lemme see it

— Okay

— New VueJS project by me: http://www.hce.it/

— What do you think

— 2/10 screen picture, not functional