Hàm lày ngày trong tuần javascript

tipjs,date,function

Hàm lày ngày trong tuần javascript

const getWhatDay = () => {
  return new Date().getDay() ? new Date().getDay() : 7
}
console.log(getWhatDay());//3

Có thể bạn đã miss một số snippets code

Lấy ngày hiện tại trong javascript

Lấy ngày hiện tại trong javascript

using javascript callback style error handling

Getting the last element of a split string array

Getting the last element of a split string array

Rest Operator for Objects

Now we can use rest on the properties of an Object. It allows us to explicitly extract certain named variables, and assign any uncalled variables into a catchall Object.

Ajax, call jQuery POST to node.js expressjs

Ajax, call jQuery POST to node.js expressjs