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

kiểm tra email trong javascript

kiểm tra email trong javascript

How to reverse an Array?

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

Getting the last element of a split string array

Getting the last element of a split string array

Async await in javascript

Async await in javascript

Remove array of objects from another array of objects

Remove array of objects from another array of objects