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

formatdate js

JavaScript’s Date() function object contains a long list of methods that can be used to manipulate the date outcome

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

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

Remove array of objects from another array of objects

Remove array of objects from another array of objects

JavaScript: async/await with forEach

JavaScript: async/await with forEach()

Getting the last element of a split string array

Getting the last element of a split string array