The most viewed items
const tnwNum = [10, 20, 30, 40];
function tnwFun1(){
document.getElementById("demo").innerHTML = tnwNum.join("
");
}
/**
function tnwFun2(){
let result = tnwNum.map(Math.sqrt);
document.getElementById("demo").innerHTML = result.join("
");
}*/
function tnwFun2(){
let result = tnwNum.map(tnwFun3);
document.getElementById("demo").innerHTML = result.join("
");
}
function tnwFun3(num){
return num * 10;
}
No comment to show.