-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
66 lines (52 loc) · 1.23 KB
/
Copy pathtest.js
File metadata and controls
66 lines (52 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// let a = new Array(3).fill(0)
// console.log(a)
// let m = new Array(3).fill( new Array(3).fill(0))
// console.log(m)
// arr = [1, 2, 3, 4]
/*
function f(A, n){
for(let i of A){
i = i*n
// console.log(i)
}
return A
}
arr = [1, 2, 3, 4]
console.log(f(arr, 3))
*/
// console.log(3%1 == 0)
/*
let n = 1729;
// min_n = parseInt(n.toString().split('').sort().join(''));
// max_n = parseInt(n.toString().split('').sort((a,b)=>b-a).join(''));
// diff = max_n - min_n;
// console.log(min_n, max_n, diff)
console.log(n.toString())
console.log(n.toString().split(''))
console.log(n.toString().split('').sort())
console.log(n.toString().split('').sort((a,b)=>b-a))
console.log(n.toString().split('').sort().join(''))
*/
/*
let num = 4;
let x = num++;
console.log(x, num);
*/
/*
let num = 4;
let x = ++num;
console.log(x, num);
*/
// console.log(3.5 % 1)
/*
var AxB = function(A, B){
var new_mat = [];
if (A[0].length === B.length){
}
else{
return "Matrix multiplication not possible due to musmatch of number of columns of first matrix and number of rows in second matrix";
}
return new_mat;
}
*/
console.log((1===1)*1.0);