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

closure javascript

closure javascript

Object.keys và Object.getOwnPropertyNames

Object.keys và Object.getOwnPropertyNames

await axios get

await axios get

using Typescript callback style error handling

formatdate js

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