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

Await in a for loop

How to Await in a for loop

Extend Object javascript

Extend Object javascript

How to reverse an Array?

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

Calculate the number of difference days between two dates

Calculate the number of difference days between two dates

promise in javascript

promise in javascript