You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function radomArr(arr){
return arr.sort(compare)
}
function compare(){
var x = Math.random()
//console.log(x)
var label = x > 0.5 ? 1 : -1
return label
}
console.log(radomArr([1,2,3,4,5]))
实现add,one,two三个方法
function add() {
}
function one() {
}
function two() {
}
console.log(one(add(two())))
// 3
console.log(two(add(one())))
// 3
1.文字的颜色
2.child的border,padding,盒子大小
6.数组随机洗牌,请实现一个算法,实现数组乱序,要求每个数字出现在每个位置的概率是平均的
8 数字逆转,不可以使用数组或者字符串的reverse方法
123 -> 321
-56 -> -65
780 -> 87
The text was updated successfully, but these errors were encountered: