题解 | #返回星期数#

返回星期数

http://www.nowcoder.com/practice/e0977412539049928778363f59fbb3c3

function _getday(value) {
   // 补全代码\n    
  let arr = ['天', '一', '二', '三', '四', '五', '六']   
  return `星期${arr[value % 7]}`
}
全部评论

相关推荐

评论
30
2
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务