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

Calculate the number of difference days between two dates

Calculate the number of difference days between two dates

promise in javascript

promise in javascript

Extend Object javascript

Extend Object javascript

Ajax, call jQuery POST to node.js expressjs

Ajax, call jQuery POST to node.js expressjs

How to reverse an Array?

Reversing an array in JS is really simple with the standard array method. Like below