function reverse(str){
var tmp = ""
for(var i = str.length - 1 i >= 0 i--){
tmp += str.charAt(i)
}
return tmp
}
var str = "2374484325"
var result = reverse(str)
console.log(result)
function num(){var a=[]
for(var i=1i<=1000i++){
if(!(i%(3*5))){
a.push(i)
}
}
return a
}
返回数组如上
Check if this entry is a directory or a file.const size_t filenameLength = strlen(fileName)
if (fileName[filenameLength-1] == '/')
{
{